Skip to content

Disabling gradient tracking (torch.no_grad())

Corey Lowman edited this page Aug 14, 2022 · 2 revisions

All you have to do is not insert a tape into the input tensor. I.e. DON'T call .trace()

See Tapes and tracking gradients for more info

Clone this wiki locally