Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Oct 31, 2024
1 parent cba513c commit 9bf71fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/brevitas/export/onnx/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def export_onnx(

with PatchFp8Ops():
torch.onnx.export(module, args, export_target, **onnx_export_kwargs)
restore_return_quant_tensor(model, return_quant_tensor_state)
restore_return_quant_tensor(module, return_quant_tensor_state)
# restore the model to previous properties
module.apply(lambda m: _restore_act_caching_mode(m))
cls.set_export_mode(module, enabled=False)
Expand Down

0 comments on commit 9bf71fe

Please sign in to comment.