Function sin

  • Compute the sine function each element in a tensor. There is a method version of this static function: Tensor.sin.

    $$\sin(x) : \forall x \in T$$

    Example

      const t = sm.randn([128, 128])

    // equivalent calls
    const a = t.sin()
    const b = sm.sin(t)

    Returns

    Parameters

    • tensor: Tensor

      Tensor whose values will have their sine calculated

    Returns Tensor

Generated using TypeDoc