Skip to content

Commit 0494db8

Browse files
NeoZhangJianyuroot
and
root
authored
fix ONSAM-1387, it's workaround for LPOT new bug (oneapi-src#573)
Co-authored-by: root <[email protected]>
1 parent d599dcc commit 0494db8

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

AI-and-Analytics/Getting-Started-Samples/LPOT-Sample-for-Tensorflow/alexnet.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ tuning:
1313
accuracy_criterion:
1414
relative: 0.01 # the tuning target of accuracy loss percentage: 1%
1515
exit_policy:
16-
timeout: 100 # tuning timeout (seconds)
16+
timeout: 0 # tuning timeout (seconds)
1717
random_seed: 100 # random seed

AI-and-Analytics/Getting-Started-Samples/LPOT-Sample-for-Tensorflow/lpot_sample_tensorflow.ipynb

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,15 @@
346346
"We will execute the \"**lpot_quantize_model.py**\" to show the whole process of quantizing a model."
347347
]
348348
},
349+
{
350+
"cell_type": "code",
351+
"execution_count": null,
352+
"metadata": {},
353+
"outputs": [],
354+
"source": [
355+
"!export TF_ENABLE_MKL_NATIVE_FORMAT=0"
356+
]
357+
},
349358
{
350359
"cell_type": "code",
351360
"execution_count": null,
@@ -354,7 +363,7 @@
354363
},
355364
"outputs": [],
356365
"source": [
357-
"!python lpot_quantize_model.py"
366+
"!TF_ENABLE_MKL_NATIVE_FORMAT=0 python lpot_quantize_model.py"
358367
]
359368
},
360369
{
@@ -558,9 +567,9 @@
558567
],
559568
"metadata": {
560569
"kernelspec": {
561-
"display_name": "Python [conda env:miniconda3-vlpot] *",
570+
"display_name": "tensorflow",
562571
"language": "python",
563-
"name": "conda-env-miniconda3-vlpot-py"
572+
"name": "tensorflow"
564573
},
565574
"language_info": {
566575
"codemirror_mode": {
@@ -572,7 +581,7 @@
572581
"name": "python",
573582
"nbconvert_exporter": "python",
574583
"pygments_lexer": "ipython3",
575-
"version": "3.6.12"
584+
"version": "3.7.10"
576585
}
577586
},
578587
"nbformat": 4,

0 commit comments

Comments
 (0)