clone() {
        return new Tensor(this.type, this.data.slice(), this.dims.slice());
    }
Creates a deep copy of the current Tensor.
@returns {Tensor} A new Tensor with the same type, data, and dimensions as the original.