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
Hi everyone! Thanks for the awesome work with objax and the JAX environment, and happy holidays!
I'm trying to load some VarCollection and/or Dict[str, jnp.DeviceArray] params into the model.vars() which is a VarCollection class, and I can do so by:
But I'd expect objax.variable.VarCollection.update to work the same way e.g.
model.vars().update(new_params)
And the later doesn't work while the first one does, not sure if it's because that's not the intended behavior for VarCollection.update or if I'm doing anything wrong... But just the first one works, which for the moment is fine for what I need, but wanted to mention this just in case there's something not working as expected.
The text was updated successfully, but these errors were encountered:
If the intended behavior of objax.variable.VarCollection.update is the one mentioned above, I'll be glad to work on a fix for it! 🤗 Also same for #253 which is another issue I recently opened!
Hi everyone! Thanks for the awesome work with
objax
and the JAX environment, and happy holidays!I'm trying to load some
VarCollection
and/orDict[str, jnp.DeviceArray]
params into themodel.vars()
which is aVarCollection
class, and I can do so by:But I'd expect
objax.variable.VarCollection.update
to work the same way e.g.And the later doesn't work while the first one does, not sure if it's because that's not the intended behavior for
VarCollection.update
or if I'm doing anything wrong... But just the first one works, which for the moment is fine for what I need, but wanted to mention this just in case there's something not working as expected.The text was updated successfully, but these errors were encountered: