Skip to content

Commit

Permalink
Fix (graph/gptq): Removed unnecessary QuantTensor check.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickfraser committed Sep 4, 2024
1 parent 4b1377a commit 1f0933f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/brevitas/graph/gpxq.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,7 @@ def process_input(self, inp):
if isinstance(inp, IntQuantTensor):
if is_quant_enabled and self.quant_metadata is None:
self.quant_metadata = _CachedIO(inp, metadata_only=True)
if isinstance(inp, QuantTensor):
inp = inp.value
inp = inp.value

# If input is unbatched, add batch_size = 1
if len(inp.shape) == 1:
Expand Down

0 comments on commit 1f0933f

Please sign in to comment.