Skip to content

Commit

Permalink
fix smoothquant issue on fetching example_inputs (#1129)
Browse files Browse the repository at this point in the history
Signed-off-by: Xin He <[email protected]>
  • Loading branch information
xin3he authored Aug 4, 2023
1 parent c93e16b commit df8d6ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions neural_compressor/adaptor/torch_utils/smooth_quant.py
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,7 @@ def _get_example_input(self):
##assert self.dataloader, "Please provide dataloader or example_inputs"
for idx, input in enumerate(self.dataloader):
self.example_inputs = input
break

return self.example_inputs

Expand Down

0 comments on commit df8d6ec

Please sign in to comment.