Function sub

  • Subtracts two tensors element-wise.

    Parameters

    • a: Tensor

      the tensor to subtract from

    • b: number | Vector | Tensor

      the tensor to be subtracted

    Returns Tensor

    the difference of the tensors