Defined in File autograd.h
void torch::autograd::forward_ad::exit_dual_level(uint64_t level)¶
Exits the given level.
This will clear up all the gradients from this level and all dual Tensors that had gradients for this level will become regular Tensors again. This function can only be used to exit the innermost nesting level and so exiting must happen in reverse order compared to the entering that was done with the function above.