aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/data
diff options
context:
space:
mode:
authorGravatar Anna R <annarev@google.com>2018-01-31 11:25:38 -0800
committerGravatar Michael Case <mikecase@google.com>2018-01-31 17:20:42 -0800
commitadc9ee7150c45830eb0857f6b9e935b9672b7bb1 (patch)
treeed3ca404ea56ce502728f0602e3c511c56058b7f /tensorflow/python/data
parentacb2d6147415f8556ac74cbf45118baf00ca64df (diff)
Adding tf_export decorators/calls to TensorFlow functions and constants.
PiperOrigin-RevId: 184020524
Diffstat (limited to 'tensorflow/python/data')
-rw-r--r--tensorflow/python/data/ops/dataset_ops.py2
-rw-r--r--tensorflow/python/data/ops/iterator_ops.py2
-rw-r--r--tensorflow/python/data/ops/readers.py4
3 files changed, 8 insertions, 0 deletions
diff --git a/tensorflow/python/data/ops/dataset_ops.py b/tensorflow/python/data/ops/dataset_ops.py
index 0594c6d6a7..f8798c1d6f 100644
--- a/tensorflow/python/data/ops/dataset_ops.py
+++ b/tensorflow/python/data/ops/dataset_ops.py
@@ -41,8 +41,10 @@ from tensorflow.python.ops import gen_io_ops
from tensorflow.python.ops import math_ops
from tensorflow.python.ops import script_ops
from tensorflow.python.util import deprecation
+from tensorflow.python.util.tf_export import tf_export
+@tf_export("data.Dataset")
class Dataset(object):
"""Represents a potentially large set of elements.
diff --git a/tensorflow/python/data/ops/iterator_ops.py b/tensorflow/python/data/ops/iterator_ops.py
index 53a3244ce1..e573fe0192 100644
--- a/tensorflow/python/data/ops/iterator_ops.py
+++ b/tensorflow/python/data/ops/iterator_ops.py
@@ -25,6 +25,7 @@ from tensorflow.python.framework import dtypes
from tensorflow.python.framework import ops
from tensorflow.python.framework import tensor_shape
from tensorflow.python.ops import gen_dataset_ops
+from tensorflow.python.util.tf_export import tf_export
# NOTE(mrry): It is legitimate to call `Iterator.get_next()` multiple
@@ -47,6 +48,7 @@ GET_NEXT_CALL_WARNING_MESSAGE = (
"`next_element` inside the loop.")
+@tf_export("data.Iterator")
class Iterator(object):
"""Represents the state of iterating through a `Dataset`."""
diff --git a/tensorflow/python/data/ops/readers.py b/tensorflow/python/data/ops/readers.py
index 830dc5cec4..fa7601741b 100644
--- a/tensorflow/python/data/ops/readers.py
+++ b/tensorflow/python/data/ops/readers.py
@@ -23,12 +23,14 @@ from tensorflow.python.framework import dtypes
from tensorflow.python.framework import ops
from tensorflow.python.framework import tensor_shape
from tensorflow.python.ops import gen_dataset_ops
+from tensorflow.python.util.tf_export import tf_export
# TODO(b/64974358): Increase default buffer size to 256 MB.
_DEFAULT_READER_BUFFER_SIZE_BYTES = 256 * 1024 # 256 KB
+@tf_export("data.TextLineDataset")
class TextLineDataset(Dataset):
"""A `Dataset` comprising lines from one or more text files."""
@@ -71,6 +73,7 @@ class TextLineDataset(Dataset):
return dtypes.string
+@tf_export("data.TFRecordDataset")
class TFRecordDataset(Dataset):
"""A `Dataset` comprising records from one or more TFRecord files."""
@@ -115,6 +118,7 @@ class TFRecordDataset(Dataset):
return dtypes.string
+@tf_export("data.FixedLengthRecordDataset")
class FixedLengthRecordDataset(Dataset):
"""A `Dataset` of fixed-length records from one or more binary files."""