We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34300b9 commit 9f10462Copy full SHA for 9f10462
ml-agents-envs/mlagents/envs/subprocess_env_manager.py
@@ -251,7 +251,8 @@ def _postprocess_steps(
251
def _take_step(self, last_step: StepInfo) -> Dict[str, ActionInfo]:
252
all_action_info: Dict[str, ActionInfo] = {}
253
for brain_name, brain_info in last_step.current_all_brain_info.items():
254
- all_action_info[brain_name] = self.policies[brain_name].get_action(
255
- brain_info
256
- )
+ if brain_name in self.policies:
+ all_action_info[brain_name] = self.policies[brain_name].get_action(
+ brain_info
257
+ )
258
return all_action_info
0 commit comments