浏览代码

commenting action pre continuous

/develop/actionmodel-csharp
Andrew Cohen 4 年前
当前提交
9c2be310
共有 1 个文件被更改,包括 5 次插入4 次删除
  1. 9
      ml-agents/mlagents/trainers/agent_processor.py

9
ml-agents/mlagents/trainers/agent_processor.py


interrupted = step.interrupted if terminated else False
# Add the outputs of the last eval
action = stored_take_action_outputs["action"][idx]
if self.policy.use_continuous_act:
action_pre = stored_take_action_outputs["pre_action"][idx]
else:
action_pre = None
#if self.policy.use_continuous_act:
# action_pre = stored_take_action_outputs["pre_action"][idx]
#else:
# action_pre = None
action_pre = None
action_probs = stored_take_action_outputs["log_probs"][idx]
action_mask = stored_decision_step.action_mask
prev_action = self.policy.retrieve_previous_action([global_id])[0, :]

正在加载...
取消
保存