Skip to content

Commit

Permalink
Removed unused check
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Mar 19, 2024
1 parent 368d0a3 commit c6f5216
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/brevitas/nn/mixin/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ def unpack_input(self, inp: Union[Tensor, QuantTensor]) -> Union[Tensor, QuantTe
# when used as input to tracing (e.g. during ONNX export)
if (torch._C._get_tracing_state() is not None and isinstance(inp, tuple) and
len(inp) == len(QuantTensor._fields) and all([isinstance(t, Tensor) for t in inp])):
inp = QuantTensor(*inp)
raise
# inp = QuantTensor(*inp)
if not torch._C._get_tracing_state():
if isinstance(inp, QuantTensor):
inp = inp.set(value=inp.value.rename(None))
Expand Down

0 comments on commit c6f5216

Please sign in to comment.