permute(...dims) {
        return permute(this, dims);
    }
Return a permuted version of this Tensor, according to the provided dimensions.
@param  {...number} dims Dimensions to permute.
@returns {Tensor} The permuted tensor.