Skip to content

Commit 9e06301

Browse files
committed
Update DTensor docs, lint notebooks
1 parent a3d095e commit 9e06301

File tree

3 files changed

+6
-28
lines changed

3 files changed

+6
-28
lines changed

site/en/guide/dtensor_overview.ipynb

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -89,29 +89,7 @@
8989
"\n",
9090
"DTensor (`tf.experimental.dtensor`) has been part of TensorFlow since the 2.9.0 release.\n",
9191
"\n",
92-
"First, install or upgrade TensorFlow:"
93-
]
94-
},
95-
{
96-
"cell_type": "code",
97-
"execution_count": null,
98-
"metadata": {
99-
"id": "OKaPw8vwwZAC"
100-
},
101-
"outputs": [],
102-
"source": [
103-
"!pip install --quiet --upgrade tensorflow"
104-
]
105-
},
106-
{
107-
"cell_type": "markdown",
108-
"metadata": {
109-
"id": "O3pG29uZIWYO"
110-
},
111-
"source": [
112-
"Then, import `tensorflow` and `dtensor`, and configure TensorFlow to use 6 virtual CPUs.\n",
113-
"\n",
114-
"Even though this example uses virtual CPUs, DTensor works the same way on CPU, GPU or TPU devices."
92+
"Begin by importing TensorFlow, `dtensor`, and configure TensorFlow to use 6 virtual CPUs. Even though this example uses virtual CPUs, DTensor works the same way on CPU, GPU or TPU devices."
11593
]
11694
},
11795
{

site/en/tutorials/distribute/dtensor_keras_tutorial.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"\n",
9292
"DTensor (`tf.experimental.dtensor`) has been part of TensorFlow since the 2.9.0 release.\n",
9393
"\n",
94-
"First, install or upgrade TensorFlow and TensorFlow Datasets:"
94+
"First, install or upgrade TensorFlow Datasets:"
9595
]
9696
},
9797
{
@@ -102,7 +102,7 @@
102102
},
103103
"outputs": [],
104104
"source": [
105-
"!pip install --quiet --upgrade tensorflow tensorflow-datasets"
105+
"!pip install --quiet --upgrade tensorflow-datasets"
106106
]
107107
},
108108
{
@@ -111,7 +111,7 @@
111111
"id": "VttBMZngDx8x"
112112
},
113113
"source": [
114-
"Next, import `tensorflow` and `dtensor`, and configure TensorFlow to use 8 virtual CPUs.\n",
114+
"Next, import TensorFlow and `dtensor`, and configure TensorFlow to use 8 virtual CPUs.\n",
115115
"\n",
116116
"Even though this example uses virtual CPUs, DTensor works the same way on CPU, GPU or TPU devices."
117117
]

site/en/tutorials/distribute/dtensor_ml_tutorial.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
"\n",
9999
"DTensor (`tf.experimental.dtensor`) has been part of TensorFlow since the 2.9.0 release.\n",
100100
"\n",
101-
"First, install or upgrade TensorFlow and TensorFlow Datasets:"
101+
"First, install or upgrade TensorFlow Datasets:"
102102
]
103103
},
104104
{
@@ -109,7 +109,7 @@
109109
},
110110
"outputs": [],
111111
"source": [
112-
"!pip install --quiet --upgrade tensorflow tensorflow-datasets"
112+
"!pip install --quiet --upgrade tensorflow-datasets"
113113
]
114114
},
115115
{

0 commit comments

Comments
 (0)