Skip to content

Commit d4c8e00

Browse files
use full name to replace INC, format sample.json
1 parent 9078a6e commit d4c8e00

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

AI-and-Analytics/Getting-Started-Samples/INC-Sample-for-Tensorflow/inc_sample_tensorflow.ipynb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"# Intel® Neural Compressor (INC) Sample for Tensorflow"
7+
"# Intel® Neural Compressor Sample for Tensorflow"
88
]
99
},
1010
{
@@ -13,17 +13,17 @@
1313
"source": [
1414
"## Agenda\n",
1515
"- Train a CNN Model Based on Keras\n",
16-
"- Quantize Keras Model by INC\n",
16+
"- Quantize Keras Model by Intel® Neural Compressor\n",
1717
"- Compare Quantized Model"
1818
]
1919
},
2020
{
2121
"cell_type": "markdown",
2222
"metadata": {},
2323
"source": [
24-
"### INC Release and Sample \n",
24+
"### Intel® Neural Compressor Release and Sample \n",
2525
"\n",
26-
"This sample code is always updated for the INC release in latest oneAPI release.\n",
26+
"This sample code is always updated for the Intel® Neural Compressor release in latest oneAPI release.\n",
2727
"\n",
2828
"If you want to get the sample code for old oneAPI release, please checkout the old sample code release by git tag.\n",
2929
"\n",
@@ -51,9 +51,9 @@
5151
"source": [
5252
"Import python packages and check version.\n",
5353
"\n",
54-
"Make sure the Tensorflow is **2.2** or newer, INC is **not 1.2** and matplotlib are installed.\n",
54+
"Make sure the Tensorflow is **2.2** or newer, Intel® Neural Compressor is **not 1.2** and matplotlib are installed.\n",
5555
"\n",
56-
"Note, INC has an old names: **lpot**, **ilit**. Following script supports to old package names."
56+
"Note, Intel® Neural Compressor has an old names: **lpot**, **ilit**. Following script supports to old package names."
5757
]
5858
},
5959
{
@@ -92,7 +92,7 @@
9292
"cell_type": "markdown",
9393
"metadata": {},
9494
"source": [
95-
"Intel Optimized TensorFlow 2.5.0 and later require to set environment variable **TF_ENABLE_MKL_NATIVE_FORMAT=0** before running INC quantize Fp32 model or deploying the quantized model."
95+
"Intel Optimized TensorFlow 2.5.0 and later require to set environment variable **TF_ENABLE_MKL_NATIVE_FORMAT=0** before running Intel® Neural Compressor quantize Fp32 model or deploying the quantized model."
9696
]
9797
},
9898
{
@@ -224,12 +224,12 @@
224224
"cell_type": "markdown",
225225
"metadata": {},
226226
"source": [
227-
"## Quantize FP32 Model by INC\n",
227+
"## Quantize FP32 Model by Intel® Neural Compressor\n",
228228
"\n",
229-
"INC supports to quantize the model with a validation dataset for tuning.\n",
229+
"Intel® Neural Compressor supports to quantize the model with a validation dataset for tuning.\n",
230230
"Finally, it returns an frezon quantized model based on int8.\n",
231231
"\n",
232-
"We prepare a python script \"**inc_quantize_model.py**\" to call INC to finish the all quantization job.\n",
232+
"We prepare a python script \"**inc_quantize_model.py**\" to call Intel® Neural Compressor to finish the all quantization job.\n",
233233
"Following code sample is used to explain the code.\n",
234234
"\n",
235235
"### Define Dataloader\n",
@@ -291,7 +291,7 @@
291291
"source": [
292292
"### Define Yaml File\n",
293293
"\n",
294-
"We define alexnet.yaml to save the necessary parameters for INC.\n",
294+
"We define alexnet.yaml to save the necessary parameters for Intel® Neural Compressor.\n",
295295
"In this case, we only need to change the input/output according to the fp32 model.\n",
296296
"\n",
297297
"In this case, the input node name is '**x**'.\n",

AI-and-Analytics/Getting-Started-Samples/INC-Sample-for-Tensorflow/sample.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"guid": "82e7612f-2810-4d12-9c75-c17fcbb946fa",
33
"name": "Intel® Neural Compressor Tensorflow Getting Started",
44
"categories": ["Toolkit/oneAPI AI And Analytics/AI Getting Started Samples"],
5-
"description": "This sample illustrates how to run Intel(r) INC to quantize the FP32 model trained by Keras on Tensorflow to INT8 model to speed up the inference.",
5+
"description": "This sample illustrates how to run Intel® Neural Compressor to quantize the FP32 model trained by Keras on Tensorflow to INT8 model to speed up the inference.",
66
"languages": [{"python":{}}],
77
"dependencies": ["tensorflow","neural-compressor"],
88
"os": ["linux"],
@@ -15,12 +15,12 @@
1515
"conda env remove -n user_tensorflow",
1616
"conda create -n user_tensorflow -c ${ONEAPI_ROOT}/conda_channel python=`python -V| awk '{print $2}'` -y",
1717
"conda activate user_tensorflow",
18-
"conda install -n user_tensorflow -c ${ONEAPI_ROOT}/conda_channel tensorflow python-flatbuffers -y",
19-
"conda install -n user_tensorflow -c ${ONEAPI_ROOT}/conda_channel neural-compressor -y --offline",
20-
"conda install -n user_tensorflow -c ${ONEAPI_ROOT}/conda_channel lpot -y --offline",
18+
"conda install -n user_tensorflow -c ${ONEAPI_ROOT}/conda_channel tensorflow python-flatbuffers -y",
19+
"conda install -n user_tensorflow -c ${ONEAPI_ROOT}/conda_channel neural-compressor -y --offline",
20+
"conda install -n user_tensorflow -c ${ONEAPI_ROOT}/conda_channel lpot -y --offline",
2121
"conda install -n user_tensorflow runipy notebook -y"
2222
],
23-
"id": "inc tensorflow",
23+
"id": "neural-compressor tensorflow",
2424
"steps": [
2525
"runipy inc_sample_tensorflow.ipynb"
2626
]

0 commit comments

Comments
 (0)