Function ceil

  • Compute the mathematical ceiling (round up) of each element in a tensor. There is a method version of this static function: Tensor.ceil.

    $$\lceil x \rceil : \forall x \in T$$

    Example

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

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

    Returns

    Parameters

    • tensor: Tensor

      Tensor whose values will have their mathematical ceiling calculated

    Returns Tensor

Generated using TypeDoc