Skip to content

Commit

Permalink
Fix (nn): disable weight tensor slicing syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
volcacius committed Jun 20, 2023
1 parent 808bddc commit b579453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/brevitas/nn/mixin/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def quant_weight(
# The modules to slice should have been cached already at this point
assert self._cached_sub_tensor_slice_list_modules is not None, "Missing cache of modules to slice."
for m in self._cached_sub_tensor_slice_list_modules:
m.subtensor_slice_list = None
m.subtensor_slice_list = [None]
return out

def int_weight(self, float_datatype=False):
Expand Down

0 comments on commit b579453

Please # to comment.