torch.UnaryBackwardFn
export type UnaryBackwardFn = (
ctx: GradContext,
grad_output: AnyTensor
) => { input: TensorLike | null };Backward function for unary ops. Returns the gradient for the input tensor.
export type UnaryBackwardFn = (
ctx: GradContext,
grad_output: AnyTensor
) => { input: TensorLike | null };Backward function for unary ops. Returns the gradient for the input tensor.