Chalkboard - v3.1.0
    Preparing search index...

    Function shape

    • Returns the shape of a tensor, which is the array of its axis lengths.

      Parameters

      Returns number[]

      const result = Chalkboard.tens.shape([[[1, 2]], [[3, 4]]]); // Returns [2, 1, 2]