small fix %

This commit is contained in:
Cadene
2024-02-27 11:54:31 +00:00
parent 7df542445c
commit e543c9a42c

View File

@@ -197,7 +197,7 @@ def train(cfg: dict, out_dir=None, job_name=None):
L, metrics, step, online_episode_idx, start_time, is_offline=False
)
if step > 0 and step & cfg.eval_freq == 0:
if step > 0 and step % cfg.eval_freq == 0:
eval_policy_and_log(
env,
td_policy,