(rontolisp) docs
← Functions

torch:requires-grad-p

(torch:requires-grad-p tensor)

Returns whether the tensor participates in autograd: a leaf created with :requires-grad t, or any result recorded on the tape (computed -- outside torch:no-grad -- from something that participates).