Shortcuts

Function torch::autograd::forward_ad::enter_dual_level

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.

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