Closed mtsokol closed 7 months ago
ah, maybe somewhere in Finch we're missing an invperm
So, one related issue here is that copyto! in Finch isn't returning a swizzle, it actually pops the swizzle off of the tensor: https://github.com/willow-ahrens/Finch.jl/blob/0a536c7f43ef76ffd55ca0a927e654466e1efda8/src/transforms/wrapperize.jl#L181-L188
But I think that problem isn't the same as what we see here. I think this may just be that the rewrites for Swizzle are broken.
Hi @willow-ahrens,
I've got a question about permuting 3d swizzle array. Here's a short code where permuting a dense array differs from a Finch array, but resulting shapes should be equal (for other combinations of dimensions it worked as expected):
Is my reasoning correct?