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
I am getting: TypeError: dict.copy() takes no keyword arguments.
Possible fix
In file rlpd/rlpd/agents/drq/drq_learner.py:
importflax.core.frozen_dictasfrozen_dictactor_params=frozen_dict.FrozenDict(actor_def.init(actor_key, observations)["params"]) # line 121critic_params=frozen_dict.FrozenDict(critic_def.init(critic_key, observations, actions)["params"]) # line 145
The text was updated successfully, but these errors were encountered:
I believe this might be related to Flax's migration from frozen_dict to regular Python dictionaries as the return type, according to the issue here. Note the migration note here for Flax 0.7.1 onwards. Not sure what exact lines are erroring for you, but another possible workaround could be using the flax.core.frozen_dict utility functions, described here.
Reproduce error
Running
I am getting:
TypeError: dict.copy() takes no keyword arguments
.Possible fix
In file
rlpd/rlpd/agents/drq/drq_learner.py
:The text was updated successfully, but these errors were encountered: