mirror of
https://github.com/google-deepmind/deepmind-research.git
synced 2026-06-01 21:56:38 +08:00
Use jax.tree_util.tree_map in place of deprecated tree_multimap.
The latter is a simple alias of the former, so this change is a no-op. PiperOrigin-RevId: 461229165
This commit is contained in:
committed by
Saran Tunyasuvunakool
parent
956c4b5d9c
commit
6fcb84268e
+1
-1
@@ -277,7 +277,7 @@ class UnbiasedExponentialWeightedAverageAgentTracker:
|
||||
# 0 * NaN == NaN just replace self._statistics on the first step.
|
||||
self._statistics = dict(agent.statistics)
|
||||
else:
|
||||
self._statistics = jax.tree_multimap(
|
||||
self._statistics = jax.tree_map(
|
||||
lambda s, x: (1 - final_step_size) * s + final_step_size * x,
|
||||
self._statistics, agent.statistics)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user