Use batched actions in CompilerEnv.apply().
@@ -991,8 +991,7 @@ class CompilerEnv(gym.Env):
)
actions = self.commandline_to_actions(state.commandline)
- for action in actions:
- _, _, done, info = self.step(action)
+ _, _, done, info = self.step(actions)
if done:
raise ValueError(
f"Environment terminated with error: `{info.get('error_details')}`"
