mirror of
https://github.com/wassname/ray.git
synced 2026-07-02 05:52:36 +08:00
Changed foreach_policy to foreach_trainable_policy (#6564)
Changed foreach_policy to foreach_trainable_policy in DQN when disabling exploration. This makes it consistent with the rest of the file
This commit is contained in:
@@ -275,7 +275,7 @@ def collect_metrics(trainer):
|
||||
|
||||
|
||||
def disable_exploration(trainer):
|
||||
trainer.evaluation_workers.local_worker().foreach_policy(
|
||||
trainer.evaluation_workers.local_worker().foreach_trainable_policy(
|
||||
lambda p, _: p.set_epsilon(0))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user