Skip to content

Commit 39be23b

Browse files
Uninstall tesorflow and tensorflow-macos in test environments (#2793)
CVS-163492 Looks like uninstallation only tesnorflow on macos in the case tensorflow-macos is installed too breaks installed library. Uninstallation of both in test environment and install only tensorflow-macos should resolve the problem.
1 parent 5bdd54a commit 39be23b

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

notebooks/tensorflow-quantization-aware-training/tensorflow-quantization-aware-training.ipynb

+5-7
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,13 @@
6969
"cell_type": "code",
7070
"execution_count": null,
7171
"id": "319bffad",
72-
"metadata": {},
72+
"metadata": {
73+
"test_replace": {
74+
"%pip install -q \"tensorflow-macos>=2.9.3,<2.16.0; sys_platform == 'darwin' and platform_machine == 'arm64'\"\n": "import platform\nif platform.system() == 'Darwin' and platform.processor() in ('arm', 'arm64'):\n %pip uninstall -qy tensorflow tensorflow-macos\n%pip install -q \"tensorflow-macos>=2.9.3,<2.16.0; sys_platform == 'darwin' and platform_machine == 'arm64'\"\n"
75+
}
76+
},
7377
"outputs": [],
7478
"source": [
75-
"import platform\n",
76-
"\n",
77-
"\n",
78-
"if platform.system() == \"Darwin\" and platform.processor() in (\"arm\", \"arm64\"):\n",
79-
" %pip uninstall -qy tensorflow\n",
80-
"\n",
8179
"%pip install -q \"openvino>=2024.6.0\" \"nncf>=2.14.0\"\n",
8280
"%pip install -q \"tensorflow-macos>=2.9.3,<2.16.0; sys_platform == 'darwin' and platform_machine == 'arm64'\"\n",
8381
"%pip install -q \"tensorflow>=2.9.3,<2.16.0; sys_platform == 'darwin' and platform_machine != 'arm64'\" # macOS x86\n",

0 commit comments

Comments
 (0)