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