torch.BinaryBackwardFn
export type BinaryBackwardFn = (
ctx: GradContext,
grad_output: AnyTensor
) => { a: TensorLike | null; b: TensorLike | null };Backward function for binary ops. Returns gradients for both input tensors.
export type BinaryBackwardFn = (
ctx: GradContext,
grad_output: AnyTensor
) => { a: TensorLike | null; b: TensorLike | null };Backward function for binary ops. Returns gradients for both input tensors.