latest (dev)
Copy
Latest development documentation · Updated 2026-10-15
tensorplay.autograd.forward_ad.enter_dual_level
- tensorplay.autograd.forward_ad.enter_dual_level() int[source]
Enters a new forward grad level and returns its index.
This level can be used to make and unpack dual Tensors to compute forward gradients. Levels cannot nest: entering while another level is active raises, so all forward AD computation happens inside one level.
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

