From 6879b09e95e6b9b23662d379f3e607b21810d68f Mon Sep 17 00:00:00 2001 From: Swapnal Varma Date: Fri, 24 Nov 2023 14:30:35 +0530 Subject: [PATCH] Rename deprecated call to experimental_distribute_datasets_from_function --- site/en/guide/tpu.ipynb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/site/en/guide/tpu.ipynb b/site/en/guide/tpu.ipynb index 0ac2f8216fc..c37b9af576e 100644 --- a/site/en/guide/tpu.ipynb +++ b/site/en/guide/tpu.ipynb @@ -449,7 +449,7 @@ "# on each TPU worker.\n", "per_replica_batch_size = batch_size // strategy.num_replicas_in_sync\n", "\n", - "train_dataset = strategy.experimental_distribute_datasets_from_function(\n", + "train_dataset = strategy.distribute_datasets_from_function(\n", " lambda _: get_dataset(per_replica_batch_size, is_training=True))\n", "\n", "@tf.function\n", @@ -588,9 +588,9 @@ "metadata": { "accelerator": "TPU", "colab": { - "collapsed_sections": [], "name": "tpu.ipynb", - "toc_visible": true + "toc_visible": true, + "provenance": [] }, "kernelspec": { "display_name": "Python 3", @@ -599,4 +599,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} +} \ No newline at end of file