sdesrozis:

timer.attach(trainer,
             start=Events.EPOCH_STARTED(every=3),
             resume=Events.ITERATION_STARTED,
             pause=Events.ITERATION_COMPLETED)



Hello,
I am trying with this method
timer.attach(trainer,start=Events.EPOCH_STARTED(every=1),
    resume=Events.ITERATION_STARTED,
    pause=Events.ITERATION_COMPLETED)

After I want to print the value
print(“timers=”, trainer.state.timers)
Engine run is terminating due to exception: ‘State’ object has no attribute 'timers". I changed to timer but I am getting the same error