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
{{ message }}
This repository was archived by the owner on Mar 31, 2025. It is now read-only.
Hi everyone! Thanks for the awesome work with objax and the JAX environment, and happy holidays!
I was playing around for objax for a bit, and realized that if you try to update the model.vars() which is a VarCollection using the VarCollection.update method overwriting the default dict.update method, if what you pass to the function is a Python dictionary and not a VarCollection it fails, as it's being cast into a Python list, and then we're trying to loop over the items of a list as if it was a Python dictionary, so it throws a ValueError: too many values to unpack (expected 2).
Hi everyone! Thanks for the awesome work with
objaxand the JAX environment, and happy holidays!I was playing around for
objaxfor a bit, and realized that if you try to update themodel.vars()which is aVarCollectionusing theVarCollection.updatemethod overwriting the defaultdict.updatemethod, if what you pass to the function is a Python dictionary and not aVarCollectionit fails, as it's being cast into a Python list, and then we're trying to loop over the items of a list as if it was a Python dictionary, so it throws aValueError: too many values to unpack (expected 2).objax/objax/variable.py
Lines 311 to 318 in 53b391b
Is this intended? Shouldn't
VarCollection.updatejust loop over classes that allow.items()?