Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
338e2bb
create
NeoZhangJianyu Sep 28, 2020
442e330
rm wrong file
NeoZhangJianyu Sep 28, 2020
43919b0
push missed files
NeoZhangJianyu Sep 28, 2020
c4db9b4
add ci prepare cmd
NeoZhangJianyu Sep 29, 2020
bc8c35a
add sudo in env
NeoZhangJianyu Sep 29, 2020
3b5e4d0
fix the env by clone to private env
NeoZhangJianyu Sep 30, 2020
ba68853
fix env setting
NeoZhangJianyu Sep 30, 2020
04a2b86
Merge remote-tracking branch 'upstream/master' into master
NeoZhangJianyu Oct 1, 2020
23a77d1
Merge remote-tracking branch 'upstream/master' into master
NeoZhangJianyu Oct 2, 2020
9a63b76
mv the ilit to new folder, clear the output of ipy
NeoZhangJianyu Oct 2, 2020
68638a4
rm temp files
NeoZhangJianyu Oct 2, 2020
3ecb4f7
Lqnguyen branch3 (#210)
lqnguyen Oct 2, 2020
b398e30
Lqnguyen branch1 (#201)
lqnguyen Oct 2, 2020
ac2624e
Lqnguyen branch2 (#209)
lqnguyen Oct 2, 2020
1ce7c7c
namespace change for montecarlo (#208)
vmadananth Oct 2, 2020
98c0d43
Adding changes to buffer and accessor declarations (#214)
slgogar Oct 2, 2020
944d9fb
Update samples for beta10 release (#207)
MoushumiMaria Oct 2, 2020
d7ed6cc
folder structures changes following saumya's request (#217)
louie-tsai Oct 3, 2020
f81bb2d
Beta10 GZIP performance update (#204)
akertesz Oct 5, 2020
c4b7918
Update top level README (#222)
akertesz Oct 6, 2020
7bd679a
Fix path to oneDPL for Beta10 (#224)
terdner Oct 6, 2020
f731517
Added new Sample (TensorFlow Multinode Training with Horovod) (#197)
shailensobhee Oct 6, 2020
88e0266
Update third_party_programs.txt (#221)
JoeOster Oct 6, 2020
c0635ae
Update Buffers/Accessors according to latest coding guidelines (Matri…
clevels Oct 6, 2020
b943b62
oneMKL sample updates for beta10 (#213)
petercad Oct 6, 2020
b17c609
Jupyter notebooks update as per the latest guidelines (#223)
praveenkk123 Oct 6, 2020
ed788f1
Samples: block APSP and merge SPMV (#219)
MoushumiMaria Oct 7, 2020
c941df3
move TF GS sample to new folder structure according to Saumya's direc…
louie-tsai Oct 7, 2020
74b8a35
Update sample.json (#228)
MoushumiMaria Oct 7, 2020
6fa646e
Edit for readme and some json files (#229)
JoeOster Oct 7, 2020
38a21cb
Changed folder structure (#220)
jingxu10 Oct 7, 2020
49b4fad
Moved model zoo sample to new directory (#216)
jitendra42 Oct 7, 2020
d2cf47a
Updating buffers/accessors for TBB Samples according to coding guidel…
clevels Oct 8, 2020
900d59e
Update oneVPL samples for Beta10 (#218)
mav-intel Oct 8, 2020
7c91f54
Add computed_tomography sample (#212)
petercad Oct 8, 2020
20c0761
create
NeoZhangJianyu Sep 28, 2020
e41c9b1
rm wrong file
NeoZhangJianyu Sep 28, 2020
96e1119
push missed files
NeoZhangJianyu Sep 28, 2020
457c42f
add ci prepare cmd
NeoZhangJianyu Sep 29, 2020
0f1e16e
add sudo in env
NeoZhangJianyu Sep 29, 2020
0a327cb
fix the env by clone to private env
NeoZhangJianyu Sep 30, 2020
6647c64
fix env setting
NeoZhangJianyu Sep 30, 2020
d2d5e97
mv the ilit to new folder, clear the output of ipy
NeoZhangJianyu Oct 2, 2020
37b1667
rm temp files
NeoZhangJianyu Oct 2, 2020
0de090f
Merge branch 'master' of https://github.com/oneapi-src/oneAPI-samples…
NeoZhangJianyu Oct 9, 2020
d3370eb
Merge remote-tracking branch 'upstream/master' into master
NeoZhangJianyu Nov 3, 2020
0c050ea
change structure
NeoZhangJianyu Nov 3, 2020
5c59f77
rebase the update
NeoZhangJianyu Nov 5, 2020
e476a01
rm .gitkeep
NeoZhangJianyu Nov 5, 2020
992f3ef
rebase and fix conflict
NeoZhangJianyu Nov 5, 2020
9eb7c1b
Merge remote-tracking branch 'upstream/master'
NeoZhangJianyu Nov 9, 2020
6652e98
Merge remote-tracking branch 'upstream/master'
NeoZhangJianyu Nov 10, 2020
f28b935
update for new API and config for ilit 1.0 in golden release
NeoZhangJianyu Nov 10, 2020
9b0fc40
Merge remote-tracking branch 'upstream/master'
NeoZhangJianyu Nov 12, 2020
8c59c29
update the script to prepare running env
NeoZhangJianyu Nov 12, 2020
e1c1f7b
Merge remote-tracking branch 'upstream/master'
NeoZhangJianyu Nov 17, 2020
4aa7a52
Merge remote-tracking branch 'upstream/master'
NeoZhangJianyu Dec 1, 2020
0bf6ccb
Merge remote-tracking branch 'upstream/master'
NeoZhangJianyu Dec 2, 2020
cff07b9
optimize for CPU to fix the latency of int8 low issue
NeoZhangJianyu Dec 2, 2020
4478f65
rm unused code
NeoZhangJianyu Dec 2, 2020
c00e8e5
Merge remote-tracking branch 'upstream/master'
NeoZhangJianyu Dec 3, 2020
9ee22fb
fix the latency issue by script
NeoZhangJianyu Dec 3, 2020
e8531e5
correct the file name in text
NeoZhangJianyu Dec 4, 2020
de34cf2
sync
NeoZhangJianyu Sep 17, 2021
02164d1
support tf2.5
NeoZhangJianyu Sep 17, 2021
6e4cdb2
Merge remote-tracking branch 'upstream/master'
NeoZhangJianyu Oct 14, 2021
b41e561
Merge branch 'oneapi-src:master' into master
NeoZhangJianyu May 23, 2022
bfe5092
Update inc_sample_tensorflow.ipynb
NeoZhangJianyu May 23, 2022
3f4ba03
Update README.md
NeoZhangJianyu May 23, 2022
d9ff63a
Update inc_sample_tensorflow.ipynb
NeoZhangJianyu May 23, 2022
a5086b0
Update inc_sample_tensorflow.ipynb
NeoZhangJianyu May 23, 2022
9f8aa36
support win10
NeoZhangJianyu May 23, 2022
3abe53c
rebase
NeoZhangJianyu May 23, 2022
af46e58
rm un-used code
NeoZhangJianyu May 23, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ performance to see the benefit of Intel® Neural Compressor.

| Optimized for | Description
|:--- |:---
| OS | Linux* Ubuntu* 18.04 or later
| OS | Linux* Ubuntu* 18.04 or later, Windows 10*
| Hardware | The Second Generation Intel® Xeon® Scalable processor family or newer Xeon® processors
| Software | Intel® oneAPI AI Analytics Toolkit 2021.1 or later
| What you will learn | How to use Intel® Neural Compressor tool to quantize the AI model based on TensorFlow* and speed up the inference on Intel® Xeon® CPUs
Expand Down Expand Up @@ -92,6 +92,8 @@ git checkout 2021.1-beta10

## Prepare Software Environment

### Linux (Ubuntu)

You can run this sample in a Jupyter notebook on your local computer
or in the Intel® DevCloud.

Expand Down Expand Up @@ -184,6 +186,19 @@ https://software.intel.com/content/www/us/en/develop/articles/installation-guide

This step is optional if you plan to open the notebook on your local server.

### Windows 10

Setup the Conda running environment **user_tensorflow** by following commands:

```
conda deactivate
conda env remove -n user_tensorflow
conda create -n user_tensorflow python=3.9 -y
conda activate user_tensorflow
conda install -n user_tensorflow pycocotools -c esri -y
conda install -n user_tensorflow neural-compressor tensorflow -c conda-forge -c intel -y
conda install -n user_tensorflow jupyter runipy notebook -y
```

## Run the Sample <a name="running-the-sample"></a>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@
" print(\"iLiT version {}\".format(inc.__version__)) \n",
"\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np"
"import numpy as np\n",
"\n",
"from IPython import display"
]
},
{
Expand Down Expand Up @@ -148,7 +150,7 @@
"metadata": {},
"outputs": [],
"source": [
"epochs = 3\n",
"epochs = 1\n",
"\n",
"alexnet.train_mod(model, data, epochs)"
]
Expand Down Expand Up @@ -194,7 +196,7 @@
"metadata": {},
"outputs": [],
"source": [
"!ls -la fp32_frezon.pb"
"%ls -la fp32_frezon.pb"
]
},
{
Expand Down Expand Up @@ -257,7 +259,7 @@
"metadata": {},
"outputs": [],
"source": [
"!cat alexnet.py"
"display.Code('alexnet.py')"
]
},
{
Expand All @@ -280,7 +282,7 @@
"metadata": {},
"outputs": [],
"source": [
"!cat alexnet.yaml"
"display.Code('alexnet.yaml')"
]
},
{
Expand All @@ -299,7 +301,6 @@
},
"outputs": [],
"source": [
"\n",
"def auto_tune(input_graph_path, yaml_config, batch_size): \n",
" fp32_graph = alexnet.load_pb(input_graph_path)\n",
" quan = inc.Quantization(yaml_config)\n",
Expand Down Expand Up @@ -341,7 +342,7 @@
},
"outputs": [],
"source": [
"!cat inc_quantize_model.py"
"display.Code('inc_quantize_model.py')"
]
},
{
Expand Down Expand Up @@ -388,7 +389,7 @@
"metadata": {},
"outputs": [],
"source": [
"!cat profiling_inc.py"
"display.Code('profiling_inc.py')"
]
},
{
Expand Down Expand Up @@ -435,9 +436,9 @@
},
"outputs": [],
"source": [
"!cat 32.json\n",
"display.Code('32.json')\n",
"!echo \" \"\n",
"!cat 8.json"
"display.Code('8.json')"
]
},
{
Expand Down Expand Up @@ -574,7 +575,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.10"
"version": "3.9.12"
}
},
"nbformat": 4,
Expand Down