Function sub

Source
pub fn sub(lhs: &Tensor, rhs: &Tensor) -> Tensor
Expand description

Subtracts two Tensor objects.

§Arguments

  • lhs - The first Tensor.
  • rhs - The second Tensor.

§Returns

The resulting Tensor after the subtraction.