stride() {
        return dimsToStride(this.dims);
    }
Compute and return the stride of this tensor.
Stride is the jump necessary to go from one element to the next one in the specified dimension dim.
@returns {number[]} The stride of this tensor.