# tensorplay.autograd.function.once_differentiable

Source: https://www.tensorplay.cn/docs/generated/tensorplay.autograd.function.once_differentiable.html

# tensorplay.autograd.function.once_differentiable

tensorplay.autograd.function.once_differentiable(fn)[[source]](../_modules/tensorplay/autograd/function.html#once_differentiable)

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