Function torch::autograd::any_variable_requires_grad#
Defined in File function.h
Function Documentation#
-
inline bool torch::autograd::any_variable_requires_grad(const variable_list &variables)#
Return true if any of the variables in the list require a gradient.