indexOf(item) {
        const this_data = this.data;
        for (let index = 0; index < this_data.length; ++index) {
            // Note: == instead of === so we can match Ints with BigInts
            if (this_data[index] == item) {
                return index;
            }
        }
        return -1;
    }
@param {number|bigint} item The item to search for in the tensor
@returns {number} The index of the first occurrence of item in the tensor data.