Skip to content

Commit

Permalink
Save/Load of Optimizer State (#33)
Browse files Browse the repository at this point in the history
* Enable save/load of optimizer; Save/load manager like model

* Add training settings as mutable settings to Manager

* Save/load optimizer when new one is available; svae total num steps

* Save/load optimizer when new one is available; svae total num steps

* Add removed training writer back in

* Revert additional kwargs for now

---------

Co-authored-by: mhuen <mhuen@users.noreply.github.com>
  • Loading branch information
mhuen and mhuen authored Dec 19, 2024
1 parent 59226a4 commit e93b142
Show file tree
Hide file tree
Showing 5 changed files with 280 additions and 236 deletions.
8 changes: 4 additions & 4 deletions egenerator/ic3/reconstruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,10 +399,10 @@ def Configure(self):

for model in self.manager.models:
num_vars, num_total_vars = model.num_variables
msg = "\nNumber of Model Variables:\n"
msg += "\tFree: {}\n"
msg += "\tTotal: {}"
log_info(msg.format(num_vars, num_total_vars))
msg = f"\nNumber of Model Variables for {model.name}:\n"
msg += f"\tFree: {num_vars}\n"
msg += f"\tTotal: {num_total_vars}"
log_info(msg)

# ------------------------------
# Gather Reconstruction Settings
Expand Down
Loading

0 comments on commit e93b142

Please sign in to comment.