Skip to content

Commit

Permalink
Fix inception_v3 Accuracy Regression Issue (#1200)
Browse files Browse the repository at this point in the history
Signed-off-by: zehao-intel <[email protected]>
  • Loading branch information
zehao-intel authored Aug 30, 2023
1 parent e33a753 commit db5dfa0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ def run(self):
eval_dataloader = create_dataloader('tensorflow', eval_dataloader_args)
op_name_dict = {'v0/cg/conv0/conv2d/Conv2D': {
'activation': {'dtype': ['fp32']}}}
conf = PostTrainingQuantConfig(calibration_sampling_size=[50, 100], op_name_dict=op_name_dict)
conf = PostTrainingQuantConfig(calibration_sampling_size=[50, 100], \
op_name_dict=op_name_dict, excluded_precisions=['bf16'])
from neural_compressor import Metric
top1 = Metric(name="topk", k=1)
q_model = quantization.fit(args.input_graph, conf=conf, calib_dataloader=calib_dataloader,
Expand Down

0 comments on commit db5dfa0

Please sign in to comment.