Chalkboard - v3.1.0
    Preparing search index...

    Function zero

    • Initializes a zero tensor.

      Parameters

      • ...shape: number[]

        The shape

      Returns ChalkboardTensor

      const result = Chalkboard.tens.zero(2, 2, 2); // Returns [[[0, 0], [0, 0]], [[0, 0], [0, 0]]]