Function torch::autograd::forward_ad::enter_dual_level#
Defined in File autograd.h
Function Documentation#
-
uint64_t torch::autograd::forward_ad::enter_dual_level()#
Creates a new dual level and returns its index.
This level index should then be used to call into the other functions below. This API supports entering a new level before the previous one is exited. We call them nested forward AD levels. These can be used to compute higher order derivatives.