diff options
author | Martin Wicke <577277+martinwicke@users.noreply.github.com> | 2018-09-21 12:45:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-21 12:45:18 -0700 |
commit | adb5d74f52917d00e9a779a74f0e0a4e5ca22ca4 (patch) | |
tree | 9324e795405197643929061502c938138d0fba07 /tensorflow/python/data | |
parent | effced8f591441e0706377e2b31debb96ee9203d (diff) |
Fix lint errors
Diffstat (limited to 'tensorflow/python/data')
-rw-r--r-- | tensorflow/python/data/ops/dataset_ops.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tensorflow/python/data/ops/dataset_ops.py b/tensorflow/python/data/ops/dataset_ops.py index 1b9ea2ed08..28a36bfb32 100644 --- a/tensorflow/python/data/ops/dataset_ops.py +++ b/tensorflow/python/data/ops/dataset_ops.py @@ -1009,8 +1009,9 @@ class Dataset(object): def flat_map(self, map_func): """Maps `map_func` across this dataset and flattens the result. - Use `flat_map` if you want to make sure, that the order of your dataset stays the same. - For example, to flatten a dataset of batches into a dataset of their elements: + Use `flat_map` if you want to make sure that the order of your dataset + stays the same. For example, to flatten a dataset of batches into a + dataset of their elements: ```python # NOTE: The following examples use `{ ... }` to represent the @@ -1022,7 +1023,8 @@ class Dataset(object): ``` `tf.data.Dataset.interleave()` is a generalization of `flat_map`, since - `flat_map` produces the same output as `tf.data.Dataset.interleave(cycle_length=1)` + `flat_map` produces the same output as + `tf.data.Dataset.interleave(cycle_length=1)` Args: map_func: A function mapping a nested structure of tensors (having shapes |