Rate this Page

Function torch::autograd::any_variable_requires_grad#

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.