We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c04210c + f5793b5 commit 31e4dd0Copy full SHA for 31e4dd0
src/functor.jl
@@ -88,6 +88,9 @@ function params(m...)
88
return ps
89
end
90
91
+# Allows caching of the parameters when params is called within gradient() to fix #2040.
92
+@non_differentiable params(m...)
93
+
94
struct FluxCUDAAdaptor end
95
adapt_storage(to::FluxCUDAAdaptor, x) = CUDA.cu(x)
96
adapt_storage(to::FluxCUDAAdaptor, x::Zygote.FillArrays.AbstractFill) = CUDA.cu(collect(x))
0 commit comments