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 135b844 commit 52cf778Copy full SHA for 52cf778
ignite/engine/engine.py
@@ -129,7 +129,16 @@ def compute_mean_std(engine, batch):
129
"""
130
131
_state_dict_all_req_keys = ("epoch_length", "max_epochs")
132
- _state_dict_one_of_opt_keys = ("iteration", "epoch")
+ _state_dict_one_of_opt_keys = (
133
+ (
134
+ "iteration",
135
+ "epoch",
136
+ ),
137
138
+ "max_epochs",
139
+ "max_iters",
140
141
+ )
142
143
# Flag to disable engine._internal_run as generator feature for BC
144
interrupt_resume_enabled = True
0 commit comments