Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[refactor] moving memtracer to gemini #801

Merged
merged 17 commits into from
Apr 19, 2022
Merged
Prev Previous commit
Next Next commit
polish
  • Loading branch information
feifeibear committed Apr 18, 2022
commit d0009f38e59c4abac6c07ea1d4d565c0b10d34aa
2 changes: 1 addition & 1 deletion colossalai/trainer/hooks/_log_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def _log_by_iter(self, trainer, mode: str):
def _log_by_epoch(self, trainer, mode: str):
for metric_name, metric_calculator in trainer.states['metrics'][mode].items():
if metric_calculator.epoch_only:
val, tflops_value = metric_calculator.get_accumulated_value()
val = metric_calculator.get_accumulated_value()
if self._is_valid_rank_to_log:
self.writer.add_scalar(f'{metric_name}/{mode}', val, trainer.cur_step)

Expand Down