Consolidate StatsTracker as LocalWriter; cleaned up functions to write (#88)

* removed stats tracker; consolidate writers into local writer

* basic revamp of stats tracker/writers
This commit is contained in:
evonneng authored and GitHub committed 2022-05-20 08:51:45 -07:00
1 parent 2287eb3455
commit 10d713f84b
9 files changed
+256 -311

No files matched your search

+1 -1
View File
@@ -83,4 +83,4 @@ class Optimizers:
scheduler.step()
# TODO(ethan): clean this up. why is there indexing into a list?
lr = scheduler.get_last_lr()[0]
writer.write_scalar(name=f"{param_group_name}", scalar=lr, step=step, group="learning_rate")
writer.put_scalar(name=f"{param_group_name}", scalar=lr, step=step, group="learning_rate")