Open chengchingwen opened 3 weeks ago
This issue is due to MLDataDevices specializing on tuples and not keeping an IdDict for those. It should be fixed.
For functor types instead it works as expected:
julia> struct A; x; y; end
julia> Functors.@functor A
julia> a = A(x, x);
julia> ca = gpu(a);
julia> ca.x === ca.y # Flux v0.14.24
true
It would cause problems for weight sharing. Probably due to #2502