Skip to content

Commit

Permalink
Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
kurt-stolle committed Feb 26, 2024
1 parent 2db5a29 commit 7cfe5ad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sources/unipercept/engine/_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -1333,8 +1333,10 @@ def _train_log(self, logs: dict[str, T.Any]) -> None:
logs : dict[str, float]
The logs to be logged.
"""
logs["engine/epoch"] = round(self._state.epoch, 2)
logs["engine/epoch"] = round(self._state.epoch, 6)
logs["engine/step"] = self._state.step
logs["engine/gradient_accumulation"] = self._state.gradient_accumulation
logs["engine/stage"] = self._state.stage
logs["engine/epoch_step"] = self.xlr.step
logs["engine/status"] = self.status

Expand All @@ -1343,7 +1345,7 @@ def _train_log(self, logs: dict[str, T.Any]) -> None:
self._state.log_history.append(logs)
if len(self._state.log_history) > self._params.logging_history:
self._state.log_history.pop(0)
self.xlr.log(logs, step=self._state.step)
self.xlr.log(logs) # , step=self._state.step)

def _load_weights(self, path: Pathable, model: nn.Module) -> nn.Module:
"""
Expand Down

0 comments on commit 7cfe5ad

Please sign in to comment.