diff --git a/AI-and-Analytics/Getting-Started-Samples/LPOT-Sample-for-Tensorflow/lpot_quantize_model.py b/AI-and-Analytics/Getting-Started-Samples/LPOT-Sample-for-Tensorflow/lpot_quantize_model.py index 5766a765ae..502513082b 100644 --- a/AI-and-Analytics/Getting-Started-Samples/LPOT-Sample-for-Tensorflow/lpot_quantize_model.py +++ b/AI-and-Analytics/Getting-Started-Samples/LPOT-Sample-for-Tensorflow/lpot_quantize_model.py @@ -4,8 +4,8 @@ except: import ilit as lpot -if lpot.__version__ > '1.1': - print("This script doesn't support LPOT 1.2 or newer, please install LPOT 1.1") +if lpot.__version__ == '1.2': + print("This script doesn't support LPOT 1.2, please install LPOT 1.1, 1.2.1 or newer") sys.exit(1) import alexnet diff --git a/AI-and-Analytics/Getting-Started-Samples/LPOT-Sample-for-Tensorflow/lpot_sample_tensorflow.ipynb b/AI-and-Analytics/Getting-Started-Samples/LPOT-Sample-for-Tensorflow/lpot_sample_tensorflow.ipynb index d3b6d092b1..a4703889aa 100644 --- a/AI-and-Analytics/Getting-Started-Samples/LPOT-Sample-for-Tensorflow/lpot_sample_tensorflow.ipynb +++ b/AI-and-Analytics/Getting-Started-Samples/LPOT-Sample-for-Tensorflow/lpot_sample_tensorflow.ipynb @@ -51,7 +51,7 @@ "source": [ "Import python packages and check version.\n", "\n", - "Make sure the Tensorflow is **2.2** or newer and LPOT is **1.0** or **1.1**, matplotlib are installed.\n", + "Make sure the Tensorflow is **2.2** or newer and LPOT is **1.0, 1,1 ** or **1.1**, matplotlib are installed.\n", "\n", "Note, LPOT has an old name **ilit**. Following script supports to old package name **ilit**." ]