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
Since MODEL_REGISTER is a dictionary, it caches the initialized module and would return initialized module instead of returning a new instance of the module when we call get_models again. This would lead to unexpected errors (i.e. shape mismatch).
As a hotfix 3db7e7e, we added deepcopy in _get_models upon initialization, but a proper model register that return an instance of a module is needed.
The text was updated successfully, but these errors were encountered:
Currently,
MODEL_REGISTER
is a dictionary of emulators where all the emulators would be initialized when we call_get_models
.Since
MODEL_REGISTER
is a dictionary, it caches the initialized module and would return initialized module instead of returning a new instance of the module when we callget_models
again. This would lead to unexpected errors (i.e. shape mismatch).As a hotfix 3db7e7e, we added
deepcopy
in_get_models
upon initialization, but a proper model register that return an instance of a module is needed.The text was updated successfully, but these errors were encountered: