浏览代码

Fix policy memory storinig

/develop/add-fire/memoryclass
Ervin Teng 4 年前
当前提交
884c97ce
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ml-agents/mlagents/trainers/policy/torch_policy.py

2
ml-agents/mlagents/trainers/policy/torch_policy.py


run_out["value"] = np.mean(list(run_out["value_heads"].values()), 0)
run_out["learning_rate"] = 0.0
if self.use_recurrent:
run_out["memories"] = memories.detach().cpu().numpy()
run_out["memory_out"] = memories.detach().cpu().numpy().squeeze(0)
return run_out
def get_action(

正在加载...
取消
保存