Skip to content

Commit b3d9849

Browse files
author
Yawei Li
authored
improve the example in Timer's docs. (#2173)
Signed-off-by: sandylaker <yawei.li@tum.de>
1 parent 5d4f869 commit b3d9849

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ignite/handlers/timing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class Timer:
7070
>>> trainer = Engine(training_update_function)
7171
>>> timer = Timer(average=True)
7272
>>> timer.attach(trainer,
73-
... start=Events.EPOCH_STARTED,
73+
... start=Events.STARTED,
7474
... resume=Events.ITERATION_STARTED,
7575
... pause=Events.ITERATION_COMPLETED,
7676
... step=Events.ITERATION_COMPLETED)

0 commit comments

Comments
 (0)