Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Oct 17, 2023
1 parent 200c0de commit bb8f0ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/brevitas/utils/quant_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
from brevitas.core.function_wrapper import *
from brevitas.core.quant import RescalingIntQuant
from brevitas.inject.enum import FloatToIntImplType
from brevitas.proxy.quant_proxy import QuantProxyFromInjector


def _is_proxy_in_export_mode(model):
for submodule in model.modules():
if hasattr(submodule, 'export_mode'):
if isinstance(submodule, QuantProxyFromInjector) and hasattr(submodule, 'export_mode'):
return submodule.export_mode
return False

Expand Down

0 comments on commit bb8f0ad

Please sign in to comment.