torch_subtract: Subtract

View source: R/gen-namespace.R

torch_subtractR Documentation

Subtract

Description

Subtract

Usage

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().


torch documentation built on June 7, 2023, 6:19 p.m.