/usr/local/lib64/python3.6/site-packages/torch/include/torch/csrc/autograd/utils
NameSizeModeActions
error_messages.h5250644editdlrm
grad_layout_contract.h14250644editdlrm
lambda_post_hook.h9760644editdlrm
python_arg_parsing.h13340644editdlrm
wrap_outputs.h79340644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/torch/include/torch/csrc/autograd/utils/error_messages.h (525B)
#pragma once #include namespace torch { namespace autograd { namespace utils { inline std::string requires_grad_leaf_error(bool requires_grad) { std::ostringstream oss; oss << "you can only change requires_grad flags of leaf variables."; if (requires_grad == false) { oss << " If you want to use a computed variable in a subgraph " "that doesn't require differentiation use " "var_no_grad = var.detach()."; } return oss.str(); } }}} // namespace torch::autograd::utils