From c3b03af97ce9877d623df18ef7e209cf32e75145 Mon Sep 17 00:00:00 2001 From: hmirin Date: Thu, 23 Jul 2026 13:18:50 +0900 Subject: [PATCH] Initialize ACEnv.supermoves to None training.py reads envs.envs[0].supermoves when saving a checkpoint (every 100 updates), but ACEnv.__init__ stopped setting the attribute when the supermoves implementation was removed in 89b44fa, so any run reaching update 100 crashed with an AttributeError at the first checkpoint save. Restore the pre-refactor initialization. See #6 for the full analysis and reproduction. --- ac_solver/envs/ac_env.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ac_solver/envs/ac_env.py b/ac_solver/envs/ac_env.py index 6d41fd9..16488f4 100644 --- a/ac_solver/envs/ac_env.py +++ b/ac_solver/envs/ac_env.py @@ -91,6 +91,7 @@ def __init__(self, config: ACEnvConfig = ACEnvConfig()): for i in range(self.n_gen) ] # lengths of relators in the current state self.actions = [] # list of actions from the initial state + self.supermoves = None # dict of supermoves when implemented; None for now def step(self, action): self.actions += [action]