eval is executed after steps in config elapsed
This commit is contained in:
parent
43e1b2ab88
commit
6924abdd3e
@ -323,7 +323,8 @@ def main(config):
|
||||
agent.load_state_dict(torch.load(logdir / "latest_model.pt"))
|
||||
agent._should_pretrain._once = False
|
||||
|
||||
while agent._step < config.steps:
|
||||
# make sure eval will be executed once after config.steps
|
||||
while agent._step < config.steps + config.eval_every:
|
||||
logger.write()
|
||||
print("Start evaluation.")
|
||||
eval_policy = functools.partial(agent, training=False)
|
||||
|
Loading…
x
Reference in New Issue
Block a user