Insert logged times into state
See original GitHub issue🚀 Feature
By default, Engine measures times for single epoch and total run. These times are logged with engine.logger
:
https://github.com/pytorch/ignite/blob/efc45a79ee0a5bf8105c3caff194758439db2426/ignite/engine/engine.py#L793-L796
and
https://github.com/pytorch/ignite/blob/efc45a79ee0a5bf8105c3caff194758439db2426/ignite/engine/engine.py#L497-L500
Idea is to put these times (at least time_taken
for epoch and total time) into engine.state
under a name (e.g. “times”). Such that we can also use this information without need to use Timer
or setup logger.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Add a time-in-state measure to a Power BI report
Learn how to add a time-in-state measure to an existing Power BI report based on Analytics for Azure DevOps.
Read more >sql - Why does an insert query occasionally take so long to ...
I insert data into it, and sometimes a insert query takes > 2 seconds to run. There are no reads on this table...
Read more >SQL Server Transaction Log Growth Monitoring and ...
These SQL Transaction Log records will be in pending replication state until these tracked changes are replicated to the subscriber database, in ......
Read more >Log time on an issue | Jira Software Cloud
Open an issue and choose Work log in the activity section at the bottom of the issue. Find the time log entry and...
Read more >Log Insert Lag Time widget
The Log Insert Lag Time widget displays how many seconds the database is behind in processing the logs. Click the edit icon in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@erip yes, both can be helpful and I agree with you about
We can leave to the user the way to store all times, as other values we store in the state, e.g. metrics, batch, output etc.
@erip Actually, we above snippet is wrong. I fixed it.
Yes, in
run
method or even inState
by default…Maybe we do not need any deltas to compute as
time_taken
in_run_once_on_dataset
will give the time for 1 epoch.time_taken
in_internal_run
will give the time for complete run.Does it sound good ?