Skip to content

Commit

Permalink
Change method to get module name
Browse files Browse the repository at this point in the history
  • Loading branch information
sup3rgiu authored Nov 21, 2024
1 parent 3f8e998 commit 2212063
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchinfo/layer_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(
self.class_name = (
str(module.original_name)
if isinstance(module, ScriptModule)
else module.__class__.__name__
else module._get_name()
)
# {layer name: {col_name: value_for_row}}
self.inner_layers: dict[str, dict[ColumnSettings, Any]] = {}
Expand Down

0 comments on commit 2212063

Please sign in to comment.