Shortcuts

torch.autograd.forward_ad.enter_dual_level

torch.autograd.forward_ad.enter_dual_level()[source]

Enter a new forward grad level.

This level can be used to make and unpack dual Tensors to compute forward gradients.

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

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources