-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PermutedDimsArray #10
Comments
Shouldn’t it just be a |
Yes that's not wrong, it's just that it wouldn't capture the difference between the above and I don't know whether such distinctions are common enough to be worth building in here. One could have things like |
Ah it’s There and called |
But And yes, the permutation is part of the type of the |
Does this need to be at compile time? It seems like you could just dispatch on |
Yes that's what my PR does right now, and it does work, but seems a little ugly. (It recursively calls itself & tries to re-arrange strides, and if it can't eventually gives up & calls a fallback function.) |
Ok, adding |
Does this package plan to support higher-dimensional arrays? And if so, what should the behaviour be on
PermutedDimsArray
? Right now:My context for this is JuliaGPU/CuArrays.jl#664, where these two layouts are equally good for
gemm_strided_batched
. But the supertypes ofDenseColumnMajor
all fall underAbstractIncreasingStrides
, while the permuted one has strides(1, 200, 10)
.The text was updated successfully, but these errors were encountered: