Set grad mode
Sets or disables gradient history.
autograd_set_grad_mode(enabled)
enabled
Useful links