Skip to content

Commit

Permalink
Fix ONNX AdaRound Actn Sampler Call (#2626)
Browse files Browse the repository at this point in the history
Signed-off-by: Raj Gite <quic_rgite@quicinc.com>
  • Loading branch information
quic-rgite authored Dec 28, 2023
1 parent 48e8781 commit 6b66b20
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def _optimize_rounding(cls, module: ModuleInfo, quantized_input_name,
orig_out_data = all_orig_out_data[indices].to(device)
else:
model_inputs = cached_dataset[np.random.randint(len(cached_dataset))]
inp_data, orig_out_data = act_sampler.sample_acts(model_inputs)
inp_data, orig_out_data = act_sampler.sample_acts(create_input_dict(orig_model.model, model_inputs))


# Clear alpha's gradients before optimization step
Expand Down

0 comments on commit 6b66b20

Please sign in to comment.