50% off: Unlimited data and AI learning.
The Learning Leader's Guide to AI Literacy

torch (version 0.8.1)

autograd_set_grad_mode: Set grad mode

Description

Sets or disables gradient history.

Usage

autograd_set_grad_mode(enabled)

Arguments

enabled

bool wether to enable or disable the gradient recording.