Skip to content

Commit

Permalink
fix ONSAM-1387, it's workaround for LPOT new bug (#573)
Browse files Browse the repository at this point in the history
Co-authored-by: root <root@nntcl03-nuc.cl.inn.intel.com>
  • Loading branch information
NeoZhangJianyu and root authored Jun 30, 2021
1 parent d599dcc commit 0494db8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ tuning:
accuracy_criterion:
relative: 0.01 # the tuning target of accuracy loss percentage: 1%
exit_policy:
timeout: 100 # tuning timeout (seconds)
timeout: 0 # tuning timeout (seconds)
random_seed: 100 # random seed
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,15 @@
"We will execute the \"**lpot_quantize_model.py**\" to show the whole process of quantizing a model."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!export TF_ENABLE_MKL_NATIVE_FORMAT=0"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -354,7 +363,7 @@
},
"outputs": [],
"source": [
"!python lpot_quantize_model.py"
"!TF_ENABLE_MKL_NATIVE_FORMAT=0 python lpot_quantize_model.py"
]
},
{
Expand Down Expand Up @@ -558,9 +567,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:miniconda3-vlpot] *",
"display_name": "tensorflow",
"language": "python",
"name": "conda-env-miniconda3-vlpot-py"
"name": "tensorflow"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -572,7 +581,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.12"
"version": "3.7.10"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 0494db8

Please sign in to comment.