Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Oct 29, 2024
1 parent 53bac08 commit ecf7b4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/brevitas/graph/equalize.py
Original file line number Diff line number Diff line change
Expand Up @@ -1289,6 +1289,7 @@ def _apply_rotate(model: nn.Module, regions: List[Region], full_rotation_method=
try:
# Build hadamard rotation matrix
rot_mat, K = get_hadK(hidden_dim)
rot_func = _apply_had_device
except AssertionError as e:
print(f"Incomptible shapes {hidden_dim}")
if not insert_rotation_module:
Expand All @@ -1298,7 +1299,6 @@ def _apply_rotate(model: nn.Module, regions: List[Region], full_rotation_method=
rot_func = _apply_ort_device
print("Skipping layers")
continue
rot_func = _apply_had_device

for name, indexes in region.srcs.items():
module = region.get_module_from_name(name)
Expand Down

0 comments on commit ecf7b4f

Please sign in to comment.