From 2697a18f1266ea99436e7b21d002ae34d7077482 Mon Sep 17 00:00:00 2001
From: Guy Jacob <guy.jacob@intel.com>
Date: Sun, 19 May 2019 11:27:04 +0300
Subject: [PATCH] Update PostTrainQuantizer initialization sample in docs

---
 docs-src/docs/schedule.md | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/docs-src/docs/schedule.md b/docs-src/docs/schedule.md
index 703d84d..1237819 100755
--- a/docs-src/docs/schedule.md
+++ b/docs-src/docs/schedule.md
@@ -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
 ```
-- 
GitLab