Autograd ops
Generated from the binaries by scripts/gen-ops-reference.ts — do not edit by
hand. Every op also documents itself: torch <op> --help.
backward
backpropagate from a scalar loss (gradients accumulate)
torch backward <t1>torch backward <t1>grad
snapshot of a tensor’s accumulated gradient
torch grad <t1>torch grad <t1>detach
a graph-free reference to the same data
torch detach <t1>torch detach <t1>zero_grad
zero a tensor’s accumulated gradient in place
torch zero_grad <t1>torch zero_grad <t1>