torch_subtract function

Subtract

Subtract

torch_subtract(self, other, alpha = 1L)

Arguments

  • self: (Tensor) the input tensor.
  • other: (Tensor or Scalar) the tensor or scalar to subtract from input
  • alpha: the scalar multiplier for other

subtract(input, other, *, alpha=1, out=None) -> Tensor

Alias for torch_sub().

  • Maintainer: Daniel Falbel
  • License: MIT + file LICENSE
  • Last published: 2025-02-14