Skip to content

Commit bdb6904

Browse files
authored
Merge branch 'master' into patch-3
2 parents dd97c01 + 901d32c commit bdb6904

33 files changed

+282
-192
lines changed

site/en/community/sig_playbook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ must demonstrate:
5555
application area)
5656
* Two or more contributors willing to act as group leads, existence of other
5757
contributors, and evidence of demand for the group
58-
* Resources it will initially require (usually, mailing list and regular VC
58+
* Resources it will initially require (usually, mailing list and regular video conference
5959
call.)
6060

6161
Approval for the group will be given by a decision of the TF Community Team,

site/en/guide/_toc.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ toc:
1919
path: /guide/basic_training_loops
2020

2121
- heading: "Keras"
22+
- title: "Overview"
23+
path: /guide/keras
2224
- include: /guide/keras/_toc.yaml
2325

2426
- heading: "Build with Core"

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: 4 additions & 7 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
{
@@ -486,7 +485,7 @@
486485
" queue = tf.nest.map_structure(lambda x: tf.split(x, num_splits, axis=axis), queue)\n",
487486
" sharded_dims.append(dim)\n",
488487
"\n",
489-
" # Now we can build the list of component tensors by looking up the location in\n",
488+
" # Now you can build the list of component tensors by looking up the location in\n",
490489
" # the nested list of split-tensors created in queue[0].\n",
491490
" components = []\n",
492491
" for locations in layout.mesh.local_device_locations():\n",
@@ -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/logistic_regression_core.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@
769769
" # Compute the confusion matrix and normalize it\n",
770770
" plt.figure(figsize=(10,10))\n",
771771
" confusion = sk_metrics.confusion_matrix(y.numpy(), y_classes.numpy())\n",
772-
" confusion_normalized = confusion / confusion.sum(axis=1)\n",
772+
" confusion_normalized = confusion / confusion.sum(axis=1, keepdims=True)\n",
773773
" axis_labels = range(2)\n",
774774
" ax = sns.heatmap(\n",
775775
" confusion_normalized, xticklabels=axis_labels, yticklabels=axis_labels,\n",

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": {

0 commit comments

Comments
 (0)