Shortcuts

Function torch::autograd::_wrap_outputs

Function Documentation

std::vector<std::optional<Variable>> torch::autograd::_wrap_outputs(const variable_list &input_vars, const std::unordered_set<at::TensorImpl*> &non_differentiable, const std::unordered_set<at::TensorImpl*> &dirty_inputs, const at::ArrayRef<std::optional<Variable>> raw_outputs, const std::shared_ptr<Node> &cdata, const _jvp_fn_t &jvp_user_function, const std::unordered_set<at::TensorImpl*> &to_save_if_setup_context, const _view_as_self_fn_t &view_as_self_fn)

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