Skip to content
Snippets Groups Projects
Commit 2697a18f authored by Guy Jacob's avatar Guy Jacob
Browse files

Update PostTrainQuantizer initialization sample in docs

parent 66c0ad1d
No related branches found
No related tags found
No related merge requests found
......@@ -384,14 +384,7 @@ When using these command line arguments, the quantizer can be invoked as follows
```python
if args.quantize_eval:
if args.qe_config_file:
quantizer = distiller.config_component_from_file_by_class(model, args.qe_config_file,
'PostTrainLinearQuantizer')
else:
quantizer = quantization.PostTrainLinearQuantizer(model, args.qe_bits_acts, args.qe_bits_wts,
args.qe_bits_accum, None, args.qe_mode, args.qe_clip_acts,
args.qe_no_clip_layers, args.qe_per_channel,
args.qe_stats_file)
quantizer = distiller.quantization.PostTrainLinearQuantizer.from_args(model, args)
quantizer.prepare_model()
# Execute evaluation on model as usual
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment