浏览代码

Fix has_actions_for_brains check (#3087)

/asymm-envs
GitHub 5 年前
当前提交
e06b8f31
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 5
      ml-agents/mlagents/trainers/env_manager.py

5
ml-agents/mlagents/trainers/env_manager.py


brain_name_to_action_info: Dict[str, ActionInfo]
def has_actions_for_brain(self, brain_name: str) -> bool:
return (
brain_name in self.brain_name_to_action_info
and self.brain_name_to_action_info[brain_name].outputs is not None
return brain_name in self.brain_name_to_action_info and bool(
self.brain_name_to_action_info[brain_name].outputs
)

正在加载...
取消
保存