policy is not given logs

This commit is contained in:
NM512 2023-10-01 06:25:23 +09:00
parent 37da2d3498
commit f35480f2a6

View File

@ -164,7 +164,7 @@ def simulate(
# replace obs with done by initial state # replace obs with done by initial state
obs[index] = result obs[index] = result
# step agents # step agents
obs = {k: np.stack([o[k] for o in obs]) for k in obs[0]} obs = {k: np.stack([o[k] for o in obs]) for k in obs[0] if "log_" not in k}
action, agent_state = agent(obs, done, agent_state) action, agent_state = agent(obs, done, agent_state)
if isinstance(action, dict): if isinstance(action, dict):
action = [ action = [