Rate this Page

torch.autograd.forward_ad.exit_dual_level#

torch.autograd.forward_ad.exit_dual_level(*,level=None)[source]#

Exit a forward grad level.

This function deletes all the gradients associated with thislevel. Only deleting the latest entered level is allowed.

This function also updates the current level that is used by defaultby the other functions in this API.