Class nuTens::NoGrad๏
-
class NoGrad๏
Public Functions
-
inline NoGrad()๏
Disable autograd calculations within some scope, improving performance where you are not interested in calculating gradients Instantiate at the start of the scope where you want to disable gradient calculations like so.
#include <nuTens/tensors/tensor.hpp> ... { auto noGrad = nuTens::NoGrad(); ... < speedy non differentiated code > ... }
-
inline NoGrad()๏