Closed DhairyaLGandhi closed 4 years ago
Ref #47, FluxML/Flux.jl#737 and sidesteps #8, which came up in this use case the most, apart from where user code was causing undef
s in places where they shouldn't be.
Does it make it a technically breaking change? I am not sure if it can read dumps that were made prior to the breakage since the dictionary is different now.
I guess it could technically be a breaking change if anyone had managed to save an IdDict without any undef
s in it, but that seems relatively unlikely.
I only feel a bit uneasy about applying this to all AbstractDict
s, and suggest the more convservative Union{IdDict,Dict}
for now.
Another approach to solve the issues in saving parameters from Flux/ Zygote directly, for structures based on using
IdDict
. In the basic saving and loading test, things seem to work fine, but I would like to know if this would break any assumptions.MWE:
cc @MikeInnes