It might be nice to have a lazily permuted Tensor wrapper, similar to Julia's PermutedDimsArray. We could define it as something like PermutedDims{<:Tensor} that stores a view of the Tensor as well as the permutation of the dimensions. A first use case would be to help with compatibility with Strided.jl, where we could have a conversion from our lazy permuted Tensor type to their lazy permuted array type.
It might be nice to have a lazily permuted Tensor wrapper, similar to Julia's
PermutedDimsArray
. We could define it as something likePermutedDims{<:Tensor}
that stores a view of the Tensor as well as the permutation of the dimensions. A first use case would be to help with compatibility withStrided.jl
, where we could have a conversion from our lazy permuted Tensor type to their lazy permuted array type.