Set up profiler and moved stats tracker to its own class; set up configurables for stats tracker and profiler (#42)

* added skeleton for terminal logger

* done skeleton terminal writer logic... todo: actual calls to the write classes

* moved lambda to top function

* added logic to support timing

* prettier printing

* prettier printing

* lint

* separated out timing and other stats variables. printing in dict format

* keeping logging history and wiping rest

* updated logic to calculate total times instead of average times

* made stats tracker configurable

* moved stats tracker and profiler to own class file; implemented basic functionality for profiler

* lint removing duplicate function
This commit is contained in:
evonneng authored and GitHub committed 2022-04-28 15:04:00 -07:00
1 parent 2e350c148f
commit 609fcb04f6
7 files changed
+270 -144

No files matched your search

+7
View File
@@ -3,6 +3,13 @@ defaults:
- override hydra/job_logging: colorlog
- override hydra/hydra_logging: colorlog
debug:
enable_stats: True
stats_tracker:
max_history: 10
stats_to_track: [ITER_LOAD_TIME, ITER_TRAIN_TIME]
enable_profiler: True
hydra:
run:
# Configure output dir of each experiment programmatically from the arguments