torch.autograd.function.once_differentiable torch.autograd.function.once_differentiable(fn) Return type: Callable[[Concatenate[_T, ~_P]], _R]