torch.Tensor.Tensor.subtract
Tensor.subtract(other: number): Tensor<S, D, Dev>Tensor.subtract<O extends Shape>(other: Tensor<O>): Tensor<DynamicShape, D, Dev>Alias for sub() - element-wise subtraction.
Parameters
othernumber
Returns
Tensor<S, D, Dev>See Also
- PyTorch torch.Tensor.subtract()
- sub - Main subtraction method