Skip to content

Commit 89da005

Browse files
8bitmp3copybara-github
authored andcommitted
Fix AssertionError in Debug TensorFlow 2 migrated training pipeline guide
PiperOrigin-RevId: 491740481
1 parent 50da50a commit 89da005

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

site/en/guide/migrate/migration_debugging.ipynb

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"id": "77z2OchJTk0l"
3838
},
3939
"source": [
40-
"# Debug TF2 Migrated Training Pipeline\n",
40+
"# Debug a TensorFlow 2 migrated training pipeline\n",
4141
"\n",
4242
"<table class=\"tfo-notebook-buttons\" align=\"left\">\n",
4343
" <td>\n",
@@ -67,12 +67,12 @@
6767
"id": "zTwPu-w6M5sz"
6868
},
6969
"source": [
70-
"This notebook demonstrates how to debug training pipeline when migrating to TF2. It consists of following components:\n",
70+
"This notebook demonstrates how to debug a training pipeline when migrating to TensorFlow 2 (TF2). It consists of following components:\n",
7171
"1. Suggested steps and code samples for debugging training pipeline\n",
7272
"2. Tools for debugging\n",
7373
"3. Other related resources\n",
7474
"\n",
75-
"One assumption is you have TF1.x code and trained models for comparison, and you want to build a TF2 model that achieves similar validation accuracy.\n",
75+
"One assumption is you have the TensorFlow 1 (TF1.x) code and trained models for comparison, and you want to build a TF2 model that achieves similar validation accuracy.\n",
7676
"\n",
7777
"This notebook does **NOT** cover debugging performance issues for training/inference speed or memory usage."
7878
]
@@ -151,17 +151,6 @@
151151
"## Setup"
152152
]
153153
},
154-
{
155-
"cell_type": "code",
156-
"execution_count": null,
157-
"metadata": {
158-
"id": "sopP--i7-LaF"
159-
},
160-
"outputs": [],
161-
"source": [
162-
"!pip uninstall -y -q tensorflow"
163-
]
164-
},
165154
{
166155
"cell_type": "code",
167156
"execution_count": null,
@@ -170,9 +159,8 @@
170159
},
171160
"outputs": [],
172161
"source": [
173-
"# Install tf-nightly as the DeterministicRandomTestTool is only available in\n",
174-
"# Tensorflow 2.8\n",
175-
"!pip install -q tf-nightly"
162+
"# The `DeterministicRandomTestTool` is only available from Tensorflow 2.8:\n",
163+
"!pip install -q \"tensorflow==2.9.*\""
176164
]
177165
},
178166
{

0 commit comments

Comments
 (0)