std :: ml::tensor
Struct std::Autograd
struct Autograd {
int gradEnabled;
}Fields
1: ops record their backward graph
Methods
Disables recording and returns a guard that restores the previous mode.
The program's Autograd::get state (one for all threads).