Skip to content

Commit

Permalink
Remove unecessary modules attribute in debug export
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Nov 20, 2023
1 parent 68a6b60 commit 735a96b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/brevitas/export/onnx/debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,5 @@ def enable_debug(model, input_enabled=True, output_enabled=True, proxy_level=Fal
for name, module in model.named_modules():
if hasattr(module, "export_debug_name") and filter_fn(module):
module.export_debug_name = name
module.export_input_debug = input_enabled
module.export_output_debug = output_enabled
module.register_forward_hook(hook)
return hook

0 comments on commit 735a96b

Please sign in to comment.