Home
last modified time | relevance | path

Searched refs:functorch_tls (Results 1 – 5 of 5) sorted by relevance

/aosp_15_r20/external/pytorch/aten/src/ATen/functorch/
H A DDynamicLayer.cpp143 auto* functorch_tls = getRawFunctorchTLS(); in setInplaceRequiresGradAllowed() local
144 functorch_tls->allow_inplace_requires_grad_ = allowed; in setInplaceRequiresGradAllowed()
148 auto* functorch_tls = getRawFunctorchTLS(); in getInplaceRequiresGradAllowed() local
149 return functorch_tls->allow_inplace_requires_grad_; in getInplaceRequiresGradAllowed()
153 auto* functorch_tls = getRawFunctorchTLS(); in setSingleLevelAutogradFunctionAllowed() local
154 functorch_tls->allow_single_level_autograd_function_ = allowed; in setSingleLevelAutogradFunctionAllowed()
158 auto* functorch_tls = getRawFunctorchTLS(); in getSingleLevelAutogradFunctionAllowed() local
159 return functorch_tls->allow_single_level_autograd_function_; in getSingleLevelAutogradFunctionAllowed()
/aosp_15_r20/external/pytorch/torch/csrc/autograd/
H A Dcustom_function.h321 const auto& functorch_tls = at::functorch::functorchTLSAccessor();
322 if (functorch_tls) {
326 functorch_tls->checkSupportsCppAutogradFunction();
H A Dvariable.cpp535 const auto& functorch_tls = at::functorch::functorchTLSAccessor(); in retain_grad() local
536 if (functorch_tls) { in retain_grad()
537 functorch_tls->checkSupportsRetainGrad(); in retain_grad()
H A Dpython_function.cpp1293 const auto& functorch_tls = at::functorch::functorchTLSAccessor(); in THPFunction_apply() local
1294 if (functorch_tls) { in THPFunction_apply()
1301 functorch_tls->checkSupportsSingleLevelAutogradFunction(); in THPFunction_apply()
/aosp_15_r20/external/pytorch/tools/autograd/templates/
H A Dpython_variable_methods.cpp830 const auto& functorch_tls = at::functorch::functorchTLSAccessor(); in THPVariable_requires_grad_() local
831 if (functorch_tls) { in THPVariable_requires_grad_()
832 functorch_tls->checkSupportsInplaceRequiresGrad(); in THPVariable_requires_grad_()