|
37 | 37 | "id": "77z2OchJTk0l"
|
38 | 38 | },
|
39 | 39 | "source": [
|
40 |
| - "# Debug TF2 Migrated Training Pipeline\n", |
| 40 | + "# Debug a TensorFlow 2 migrated training pipeline\n", |
41 | 41 | "\n",
|
42 | 42 | "<table class=\"tfo-notebook-buttons\" align=\"left\">\n",
|
43 | 43 | " <td>\n",
|
|
67 | 67 | "id": "zTwPu-w6M5sz"
|
68 | 68 | },
|
69 | 69 | "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", |
71 | 71 | "1. Suggested steps and code samples for debugging training pipeline\n",
|
72 | 72 | "2. Tools for debugging\n",
|
73 | 73 | "3. Other related resources\n",
|
74 | 74 | "\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", |
76 | 76 | "\n",
|
77 | 77 | "This notebook does **NOT** cover debugging performance issues for training/inference speed or memory usage."
|
78 | 78 | ]
|
|
151 | 151 | "## Setup"
|
152 | 152 | ]
|
153 | 153 | },
|
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 |
| - }, |
165 | 154 | {
|
166 | 155 | "cell_type": "code",
|
167 | 156 | "execution_count": null,
|
|
170 | 159 | },
|
171 | 160 | "outputs": [],
|
172 | 161 | "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.*\"" |
176 | 164 | ]
|
177 | 165 | },
|
178 | 166 | {
|
|
0 commit comments