You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
During my usage of DArray in the Dagger.jl library, I encountered an inconsistency between how transpose and permutedims functions operate. While the transpose function works perfectly with DArray, it appears that permutedims is not currently supported.
Here's a minimal example that demonstrates the issue:
The result of permutedims(darray, (2, 1)) is a matrix of Dagger.GetIndex objects, and attempting to compute the result leads to an error, as shown here:
julia>permutedims(darray, (2, 1)) |> compute
ERROR: MethodError: no method matching compute(::Context, ::Matrix{Any}; options=nothing)
Closest candidates are:compute(::Context, ::DArray; persist, options) at ~/.julia/packages/Dagger/vNUsP/src/array/darray.jl:231compute(::Context, ::Thunk; options) at ~/.julia/packages/Dagger/vNUsP/src/compute.jl:27compute(::Any; options) at ~/.julia/packages/Dagger/vNUsP/src/compute.jl:5...
I couldn't find any documentation addressing this issue, so I thought it might be worth bringing up as a potential enhancement for DArray. The ability to perform arbitrary dimension permutations would enhance the usability of DArray, particularly for tensor computations.
Thanks for your time and all your work on this library!
Best,
Jofre
The text was updated successfully, but these errors were encountered:
Hello,
During my usage of
DArray
in theDagger.jl
library, I encountered an inconsistency between howtranspose
andpermutedims
functions operate. While thetranspose
function works perfectly withDArray
, it appears thatpermutedims
is not currently supported.Here's a minimal example that demonstrates the issue:
The result of
permutedims(darray, (2, 1))
is a matrix ofDagger.GetIndex
objects, and attempting to compute the result leads to an error, as shown here:I couldn't find any documentation addressing this issue, so I thought it might be worth bringing up as a potential enhancement for
DArray
. The ability to perform arbitrary dimension permutations would enhance the usability ofDArray
, particularly for tensor computations.Thanks for your time and all your work on this library!
Best,
Jofre
The text was updated successfully, but these errors were encountered: