Closed mtsokol closed 6 months ago
Could you push a fix for this? We just need to convert the underlying tensor to a LazyTensor A
, then permute the extrude field
B.extrude = A.extrude[dims]
and wrap the query in the appropriate reordering
idxs = [field(Symbol(:i_, n)) for n = 1:N];
B.data = reorder(relabel(A.data, idxs...), idxs[dims]...)
incidentally, this is also how we would support permutedims(Tensor) and swizzle(lazyTensor)
If you want, your PR could also add support for permutedims in the eager.jl
file by converting to lazy, permuting dims, and converting back.
Sure! I will work on this on Monday.
Hi @willow-ahrens,
Then passing
SwizzleArray
toLazyTensor
constructor, to create a lazy object:I get an error: