Chalkboard - v3.1.0
    Preparing search index...

    Function pull

    • Returns a tensor with elements in an axis removed (pulled out).

      Parameters

      • tens: ChalkboardTensor

        The tensor

      • axis: number

        The axis, starting from 0 for the outermost axis

      • index: number

        The index of the elements to pull

      Returns ChalkboardTensor

      const result = Chalkboard.tens.pull([[[1, 2]], [[3, 4]]], 1, 0); // Removes the first outer slice