We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
gpu
Emerged in https://discourse.julialang.org/t/scalar-indexing-gpu-problem-in-flux-jl-model/113974
In the following example one gets an error but no warnings:
using CUDA using Flux using Random CUDA.allowscalar(false) N_data = 32 img_dims = (16, 16, 3) images = Float32.(randn((img_dims..., N_data))) |> gpu model = Chain( Conv((3,3), 3 => 1, relu), # 16×16×3 -> 14×14×1 Flux.flatten, # 14×14×1 -> 196 Dense(196 => 2) # 196 -> 2 ) |> gpu model(images) # error: TaskFailedException: "Scalar indexing is disallowed."
The problem is that cuDNN is not installed so the convolution falls back to the cpu method.
The text was updated successfully, but these errors were encountered:
I think this is a dupe of FluxML/NNlib.jl#523?
Sorry, something went wrong.
We shouldn't wait for the conv to happen, when gpu is called we should warn already.
now that we use MLDataDevices and gpu = gpu_device() the automatic selection mechanism will select a cuda device only if cuDNN is loaded.
gpu = gpu_device()
No branches or pull requests
Emerged in https://discourse.julialang.org/t/scalar-indexing-gpu-problem-in-flux-jl-model/113974
In the following example one gets an error but no warnings:
The problem is that cuDNN is not installed so the convolution falls back to the cpu method.
The text was updated successfully, but these errors were encountered: