Skip to content

Commit

Permalink
Move import to top
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomlago committed Jan 13, 2025
1 parent c599f31 commit beb2cbc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/brevitas/graph/equalize.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
from brevitas.nn.equalized_layer import INPUT_NAMES
from brevitas.nn.equalized_layer import RotatedModule
from brevitas.nn.quant_scale_bias import ScaleBias
from brevitas.utils.python_utils import recurse_getattr
from brevitas.utils.rotation_utils import RotationWeightParametrization
from brevitas.utils.torch_utils import KwargsForwardHook

Expand Down Expand Up @@ -1447,9 +1448,6 @@ def _apply_rotate(
return rewriters


from brevitas.utils.python_utils import recurse_getattr


def _untie_parameters_with_parametrizations(model: torch.nn.Module):
# get ALL model parameters and their names
all_named_parameters = {
Expand Down

0 comments on commit beb2cbc

Please sign in to comment.