TensorPlay
latest (dev)
Copy
View Markdown

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.

On this page

Ask DeepWiki