From 2b617e810866190bee727d4e78b3e29818003655 Mon Sep 17 00:00:00 2001
From: Neeraj Bhadani <bhadani.neeraj.08@gmail.com>
Date: Wed, 15 Apr 2020 21:42:46 +0100
Subject: [PATCH 1/4] update dataset_ops.py

Code consistency
---
 tensorflow/python/data/ops/dataset_ops.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tensorflow/python/data/ops/dataset_ops.py b/tensorflow/python/data/ops/dataset_ops.py
index 2eddeb6eac6..e1ac3c03294 100644
--- a/tensorflow/python/data/ops/dataset_ops.py
+++ b/tensorflow/python/data/ops/dataset_ops.py
@@ -1656,7 +1656,7 @@ name=None))
     stays the same. For example, to flatten a dataset of batches into a
     dataset of their elements:
 
-    >>> dataset = Dataset.from_tensor_slices([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
+    >>> dataset = tf.data.Dataset.from_tensor_slices([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
     >>> dataset = dataset.flat_map(lambda x: Dataset.from_tensor_slices(x))
     >>> list(dataset.as_numpy_iterator())
     [1, 2, 3, 4, 5, 6, 7, 8, 9]

From ad214fb62e0a6755f2ccee21f2463a902221eebd Mon Sep 17 00:00:00 2001
From: Neeraj Bhadani <bhadani.neeraj.08@gmail.com>
Date: Mon, 20 Apr 2020 10:34:23 +0100
Subject: [PATCH 2/4] Shorten/wrapped the line 1659

---
 tensorflow/python/data/ops/dataset_ops.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tensorflow/python/data/ops/dataset_ops.py b/tensorflow/python/data/ops/dataset_ops.py
index e1ac3c03294..ea88b30e339 100644
--- a/tensorflow/python/data/ops/dataset_ops.py
+++ b/tensorflow/python/data/ops/dataset_ops.py
@@ -1656,7 +1656,8 @@ name=None))
     stays the same. For example, to flatten a dataset of batches into a
     dataset of their elements:
 
-    >>> dataset = tf.data.Dataset.from_tensor_slices([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
+    >>> dataset = tf.data.Dataset.from_tensor_slices(
+                    [[1, 2, 3], [4, 5, 6], [7, 8, 9]])
     >>> dataset = dataset.flat_map(lambda x: Dataset.from_tensor_slices(x))
     >>> list(dataset.as_numpy_iterator())
     [1, 2, 3, 4, 5, 6, 7, 8, 9]

From fcd2977e3093a16e0314780346b3143ba3c435ed Mon Sep 17 00:00:00 2001
From: Neeraj Bhadani <bhadani.neeraj.08@gmail.com>
Date: Mon, 20 Apr 2020 21:08:22 +0100
Subject: [PATCH 3/4] added parentheses on line no 1659 to avoid syntax error.

---
 tensorflow/python/data/ops/dataset_ops.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tensorflow/python/data/ops/dataset_ops.py b/tensorflow/python/data/ops/dataset_ops.py
index ea88b30e339..212a45c8539 100644
--- a/tensorflow/python/data/ops/dataset_ops.py
+++ b/tensorflow/python/data/ops/dataset_ops.py
@@ -1656,8 +1656,8 @@ name=None))
     stays the same. For example, to flatten a dataset of batches into a
     dataset of their elements:
 
-    >>> dataset = tf.data.Dataset.from_tensor_slices(
-                    [[1, 2, 3], [4, 5, 6], [7, 8, 9]])
+    >>> dataset = (tf.data.Dataset.from_tensor_slices(
+                    [[1, 2, 3], [4, 5, 6], [7, 8, 9]]))
     >>> dataset = dataset.flat_map(lambda x: Dataset.from_tensor_slices(x))
     >>> list(dataset.as_numpy_iterator())
     [1, 2, 3, 4, 5, 6, 7, 8, 9]

From e492c99dd23e140eae52086abc4546cd22046255 Mon Sep 17 00:00:00 2001
From: Neeraj Bhadani <bhadani.neeraj.08@gmail.com>
Date: Wed, 29 Apr 2020 16:47:37 +0100
Subject: [PATCH 4/4] Added ... to add multiline python statement.

---
 tensorflow/python/data/ops/dataset_ops.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tensorflow/python/data/ops/dataset_ops.py b/tensorflow/python/data/ops/dataset_ops.py
index 212a45c8539..01aaf4607ff 100644
--- a/tensorflow/python/data/ops/dataset_ops.py
+++ b/tensorflow/python/data/ops/dataset_ops.py
@@ -1656,8 +1656,8 @@ name=None))
     stays the same. For example, to flatten a dataset of batches into a
     dataset of their elements:
 
-    >>> dataset = (tf.data.Dataset.from_tensor_slices(
-                    [[1, 2, 3], [4, 5, 6], [7, 8, 9]]))
+    >>> dataset = tf.data.Dataset.from_tensor_slices(
+    ...                [[1, 2, 3], [4, 5, 6], [7, 8, 9]])
     >>> dataset = dataset.flat_map(lambda x: Dataset.from_tensor_slices(x))
     >>> list(dataset.as_numpy_iterator())
     [1, 2, 3, 4, 5, 6, 7, 8, 9]