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
IIRC this is a fundamental problem with the Type/constructor duality (UnionAlls) in Julia, and would be quite tricky for Zygote to address on its own. The Turing folks ran into a similar issue with broadcasting Distribution constructors, and they solved it by using an intermediate function which doesn't capture the constructor type. e.g.:
make_normal(a, b) =Normal(a, b)
# a = cu(...); b = cu(...)make_normal.(a, b)
In terms of things to try, one could look at whether specializing
Due to a CUDA bug: JuliaGPU/CUDA.jl#2514, crossposted for reference.
Encountered when differentiating over:
The text was updated successfully, but these errors were encountered: