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
I found that the return type of the sum! function can be different between Array and CuArray:
the Array return type is the same as the left argument while the CuArray return type retains the singleton dimension.
using CUDA
X =rand(Float32, (50, 50, 5));
Y =similar(X, (50,50));
res =sum!(Y, X);
size(res) # (50,50)
X_d =CuArray(X);
Y_d =CuArray(Y);
res_d =sum!(Y_d, X_d);
size(res_d) # (50,50,1)
I would expect to get the same type as Y_d in this case.
Hi, thanks again for putting CUDA.jl together!
I found that the return type of the
sum!
function can be different betweenArray
andCuArray
:the
Array
return type is the same as the left argument while theCuArray
return type retains the singleton dimension.I would expect to get the same type as
Y_d
in this case.Version info
The text was updated successfully, but these errors were encountered: