Skip to content

Commit 52cf778

Browse files
committed
temp
1 parent 135b844 commit 52cf778

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

ignite/engine/engine.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,16 @@ def compute_mean_std(engine, batch):
129129
"""
130130

131131
_state_dict_all_req_keys = ("epoch_length", "max_epochs")
132-
_state_dict_one_of_opt_keys = ("iteration", "epoch")
132+
_state_dict_one_of_opt_keys = (
133+
(
134+
"iteration",
135+
"epoch",
136+
),
137+
(
138+
"max_epochs",
139+
"max_iters",
140+
),
141+
)
133142

134143
# Flag to disable engine._internal_run as generator feature for BC
135144
interrupt_resume_enabled = True

0 commit comments

Comments
 (0)