Skip to content

Commit

Permalink
style(nyz): fix flake8 style issue(ci skip)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaParaZz1 committed Apr 8, 2024
1 parent 70509cb commit ba35655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ding/utils/memory_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def dump(self, prefix: str = "") -> str:
- result (:obj:`str`): The memory state information.
"""
cur_prefix = prefix + "." + self.layer_name if prefix != "" else self.layer_name
res = f"layer: {cur_prefix}, layer_mem: {self.layer_mem / MegaByte:.2f} MB, total_mem: {self.total_mem / MegaByte:.2f} MB\n"
res = f"layer: {cur_prefix}, layer_mem: {self.layer_mem / MegaByte:.2f} MB, total_mem: {self.total_mem / MegaByte:.2f} MB\n" # noqa

for sub_layer in self.sub_model_stats.values():
res += sub_layer.dump(cur_prefix)
Expand Down

0 comments on commit ba35655

Please sign in to comment.