Skip to content

Commit 1926f2e

Browse files
committed
fix extra event too
1 parent bd7a31d commit 1926f2e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ignite/contrib/engines/common.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,9 @@ def output_transform(x, index, name):
216216
if with_pbars:
217217
if with_pbar_on_iters:
218218
ProgressBar(persist=False).attach(
219-
trainer, metric_names="all", event_name=cast(Events, Events.ITERATION_COMPLETED(every=log_every_iters))
219+
trainer,
220+
metric_names="all",
221+
event_name=Events.ITERATION_COMPLETED(every=log_every_iters), # type: ignore[arg-type]
220222
)
221223

222224
ProgressBar(persist=True, bar_format="").attach(

0 commit comments

Comments
 (0)