I’m having an issue when creating a 1D ConvTranspose model in Flux, when I run it on the GPU.
The following runs
using Flux, CUDA
x = rand(Float32, 20, 13, 2)
model = ConvTranspose((7,), 13 => 5, relu; pad=(3,1), stride=2)
ŷ = model(x)
But, this generates an error
x = cu(rand(20, 13, 2))
model = ConvTranspose((7,), 13 => 5, relu; pad=(3,1), stride=2)
model = fmap(cu, model)
ŷ = model(x)
Any pointers as to what is going wrong here would be appreciated.
Here’s the error trace:
CUDNNError: CUDNN_STATUS_BAD_PARAM (code 3)
Stacktrace:
[1] throw_api_error
@ ~/.julia/packages/CUDA/GyIk9/lib/cudnn/error.jl:22
[2] macro expansion
@ ~/.julia/packages/CUDA/GyIk9/lib/cudnn/error.jl:39 [inlined]
[3] cudnnConvolutionBackwardData
@ ~/.julia/packages/CUDA/GyIk9/lib/utils/call.jl:26
[4] #9
@ ~/.julia/packages/NNlibCUDA/Oc2CZ/src/cudnn/conv.jl:69 [inlined]
[5] with_workspace
@ ~/.julia/packages/CUDA/GyIk9/lib/utils/call.jl:77
[6] with_workspace (repeats 2 times)
@ ~/.julia/packages/CUDA/GyIk9/lib/utils/call.jl:53 [inlined]
[7] #∇conv_data!#7
@ ~/.julia/packages/NNlibCUDA/Oc2CZ/src/cudnn/conv.jl:68
[8] ∇conv_data!
@ ~/.julia/packages/NNlibCUDA/Oc2CZ/src/cudnn/conv.jl:58 [inlined]
[9] #∇conv_data#91
@ ~/.julia/packages/NNlib/9FXPF/src/conv.jl:104 [inlined]
[10] ∇conv_data
@ ~/.julia/packages/NNlib/9FXPF/src/conv.jl:101
[11] ConvTranspose
@ ~/.julia/packages/Flux/Zz9RI/src/layers/conv.jl:268
[12] testconv5_875
@ ./REPL[38]:118