TensorPlay
latest (dev)
Copy
View Markdown

Latest development documentation · Updated 2026-10-15

tensorplay.autograd.function.once_differentiable

tensorplay.autograd.function.once_differentiable(fn)[source]

Decorator to make a custom autograd Function’s backward run once, with gradients detached and grad-mode disabled inside.

On this page

Ask DeepWiki