Function iota

  • Tile a Tensor of N-dimensionally shaped ranges.

    Example

      const t0 = sm.iota([2, 2], [2])
    // same as
    const t1 = sm.arange(0, 4).reshape([2, 2]).tile([2])

    Returns

    A new Tensor

    Parameters

    • dims: BigInt64Array | number[]

      The dimension of the intermediate (untiled tensor). This shape determines the range of the values within the output.

    • tileDims: BigInt64Array | number[] = ...

      How to tile the intermediate tensor.

    Returns Tensor

Generated using TypeDoc