Shortcuts

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.

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources