Skip to content

Commit

Permalink
fix mobilebert_MRPC_qdq (intel#1057)
Browse files Browse the repository at this point in the history
  • Loading branch information
mengniwang95 authored Jul 21, 2022
1 parent cf72656 commit ed5a997
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@
model = model_optimizer.model

from neural_compressor.experimental import Quantization, common
from neural_compressor import options
options.onnxrt.qdq_setting.OpTypesToExcludeOutputQuantizatioin = ['MatMul']
quantize = Quantization(args.config)
quantize.model = common.Model(model)
q_model = quantize()
q_model.save(args.output_model)
q_model.save(args.output_model)

0 comments on commit ed5a997

Please sign in to comment.