Skip to content

Commit 9eab37c

Browse files
committed
Run nbfmt on guide notebooks
In #2232, the nbfmt check was failing, so I've run it over all guides.
1 parent 2640af9 commit 9eab37c

19 files changed

+10
-41
lines changed

site/en/guide/basics.ipynb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,6 @@
956956
"colab": {
957957
"collapsed_sections": [],
958958
"name": "basics.ipynb",
959-
"provenance": [],
960959
"toc_visible": true
961960
},
962961
"kernelspec": {

site/en/guide/core/distribution.ipynb

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"cell_type": "code",
1414
"execution_count": null,
1515
"metadata": {
16+
"cellView": "form",
1617
"id": "AwOEIRJC6Une"
1718
},
1819
"outputs": [],
@@ -337,9 +338,7 @@
337338
"\n",
338339
"Create a DTensor mesh that consists of a single batch dimension, where each device becomes a replica that receives a shard from the global batch. Use this mesh to instantiate an MLP mode with the following architecture:\n",
339340
"\n",
340-
"Forward Pass: ReLU(784 x 700) x ReLU(700 x 500) x Softmax(500 x 10)\n",
341-
"\n",
342-
"\n"
341+
"Forward Pass: ReLU(784 x 700) x ReLU(700 x 500) x Softmax(500 x 10)\n"
343342
]
344343
},
345344
{
@@ -663,8 +662,7 @@
663662
"source": [
664663
"## Saving your model\n",
665664
"\n",
666-
"The integration of `tf.saved_model` and DTensor is still under development. As of TensorFlow 2.9.0, tf.saved_model only accepts DTensor models with fully replicated variables. As a workaround, you can convert a DTensor model to a fully replicated one by reloading a checkpoint. However, after a model is saved, all DTensor annotations are lost and the saved signatures can only be used with regular Tensors. This tutorial will be updated to showcase the integration once it is solidified.\n",
667-
"\n"
665+
"The integration of `tf.saved_model` and DTensor is still under development. As of TensorFlow 2.9.0, tf.saved_model only accepts DTensor models with fully replicated variables. As a workaround, you can convert a DTensor model to a fully replicated one by reloading a checkpoint. However, after a model is saved, all DTensor annotations are lost and the saved signatures can only be used with regular Tensors. This tutorial will be updated to showcase the integration once it is solidified.\n"
668666
]
669667
},
670668
{
@@ -690,7 +688,6 @@
690688
"FhGuhbZ6M5tl"
691689
],
692690
"name": "distribution.ipynb",
693-
"provenance": [],
694691
"toc_visible": true
695692
},
696693
"kernelspec": {

site/en/guide/core/matrix_core.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"cell_type": "code",
1414
"execution_count": null,
1515
"metadata": {
16+
"cellView": "form",
1617
"id": "AwOEIRJC6Une"
1718
},
1819
"outputs": [],
@@ -718,7 +719,6 @@
718719
"colab": {
719720
"collapsed_sections": [],
720721
"name": "matrix_core.ipynb",
721-
"provenance": [],
722722
"toc_visible": true
723723
},
724724
"kernelspec": {

site/en/guide/core/mlp_core.ipynb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"cell_type": "code",
1414
"execution_count": null,
1515
"metadata": {
16+
"cellView": "form",
1617
"id": "AwOEIRJC6Une"
1718
},
1819
"outputs": [],
@@ -817,7 +818,6 @@
817818
"id": "_zZxO8iqBGZ-"
818819
},
819820
"source": [
820-
"\n",
821821
"Load the saved model with `tf.saved_model.load` and examine its performance on the unseen test data."
822822
]
823823
},
@@ -952,10 +952,8 @@
952952
"FhGuhbZ6M5tl"
953953
],
954954
"name": "mlp_core.ipynb",
955-
"provenance": [],
956955
"toc_visible": true
957956
},
958-
"gpuClass": "standard",
959957
"kernelspec": {
960958
"display_name": "Python 3",
961959
"name": "python3"

site/en/guide/core/quickstart_core.ipynb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,6 @@
579579
"rX8mhOLljYeM"
580580
],
581581
"name": "quickstart_core.ipynb",
582-
"provenance": [],
583582
"toc_visible": true
584583
},
585584
"kernelspec": {

site/en/guide/data_performance.ipynb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,6 @@
11531153
"colab": {
11541154
"collapsed_sections": [],
11551155
"name": "data_performance.ipynb",
1156-
"provenance": [],
11571156
"toc_visible": true
11581157
},
11591158
"kernelspec": {

site/en/guide/estimator.ipynb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,6 @@
869869
"A_lvUsSLZzVg"
870870
],
871871
"name": "estimator.ipynb",
872-
"provenance": [],
873872
"toc_visible": true
874873
},
875874
"kernelspec": {

site/en/guide/function.ipynb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1839,7 +1839,6 @@
18391839
"metadata": {
18401840
"colab": {
18411841
"name": "function.ipynb",
1842-
"provenance": [],
18431842
"toc_visible": true
18441843
},
18451844
"kernelspec": {

site/en/guide/intro_to_graphs.ipynb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,6 @@
859859
"metadata": {
860860
"colab": {
861861
"name": "intro_to_graphs.ipynb",
862-
"provenance": [],
863862
"toc_visible": true
864863
},
865864
"kernelspec": {

site/en/guide/intro_to_modules.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -702,10 +702,10 @@
702702
]
703703
},
704704
{
705+
"cell_type": "markdown",
705706
"metadata": {
706707
"id": "ds08u3touwe4t"
707708
},
708-
"cell_type": "markdown",
709709
"source": [
710710
"Keras layers and models have a lot more extra features including:\n",
711711
"\n",
@@ -1086,10 +1086,10 @@
10861086
]
10871087
},
10881088
{
1089+
"cell_type": "markdown",
10891090
"metadata": {
10901091
"id": "seLIUG2354s"
10911092
},
1092-
"cell_type": "markdown",
10931093
"source": [
10941094
"### Checkpointing Keras models\n",
10951095
"\n",

0 commit comments

Comments
 (0)