Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 18, 2024
1 parent 4440a22 commit 047f8a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions torchinfo/layer_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,9 @@ def calculate_num_params(self) -> None:
final_name = name
# Fix the final row to display more nicely
if self.inner_layers:
self.inner_layers[final_name][
ColumnSettings.NUM_PARAMS
] = f"└─{self.inner_layers[final_name][ColumnSettings.NUM_PARAMS][2:]}"
self.inner_layers[final_name][ColumnSettings.NUM_PARAMS] = (
f"└─{self.inner_layers[final_name][ColumnSettings.NUM_PARAMS][2:]}"
)

def calculate_macs(self) -> None:
"""
Expand Down

0 comments on commit 047f8a8

Please sign in to comment.