Skip to content

Commit f12ef43

Browse files
committed
nit
1 parent 99eb5c5 commit f12ef43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

smdebug/pytorch/hook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def forward_hook(self, module, inputs, outputs):
156156
return
157157

158158
if isinstance(module, _Loss):
159-
module_name = module._get_name()
159+
module._module_name = module._get_name()
160160

161161
module_name = module._module_name
162162
# This overwhelms the logs; turn back on if you really need it

0 commit comments

Comments
 (0)