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
This is because no BLAS dispatches are hit on the CUDA.jl side. The reason is that selectdim generates a view in a way that CUDA.jl doesn't understand, see JuliaGPU/CUDA.jl#1542. Even then though, I'm not sure if cuBLAS is able to handle a discontinuous view, so this may still hit a fallback.
using Flux, CUDA
CUDA.allowscalar(false)
l = Flux.LSTMCell(3=>5) |> gpu
A =rand(3, 10) |> gpu;
B =selectdim(A, 2, [1, 3, 5, 7, 9])
h =zeros(Float32, 5) |> gpu
c =zeros(Float32, 5) |> gpu
l(B, (h, c))
MWE:
The text was updated successfully, but these errors were encountered: