1# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14# ==============================================================================
15"""Experimental API for building input pipelines.
16
17This module contains experimental `Dataset` sources and transformations that can
18be used in conjunction with the @{tf.data.Dataset} API. Note that the
19`tf.contrib.data` API is not subject to the same backwards compatibility
20guarantees as `tf.data`, but we will provide deprecation advice in advance of
21removing existing functionality.
22
23See the @{$datasets$Importing Data} Programmer's Guide for an overview.
24
25@@Counter
26
27@@batch_and_drop_remainder
28@@dense_to_sparse_batch
29@@enumerate_dataset
30@@group_by_window
31@@ignore_errors
32@@make_saveable_from_iterator
33@@map_and_batch
34@@padded_batch_and_drop_remainder
35@@parallel_interleave
36@@read_batch_features
37@@rejection_resample
38@@scan
39@@shuffle_and_repeat
40@@sloppy_interleave
41@@unbatch
42
43@@get_single_element
44"""
45
46from __future__ import absolute_import
47from __future__ import division
48from __future__ import print_function
49
50# pylint: disable=unused-import
51
52from tensorflow.contrib.data.python.ops.batching import batch_and_drop_remainder
53from tensorflow.contrib.data.python.ops.batching import dense_to_sparse_batch
54from tensorflow.contrib.data.python.ops.batching import map_and_batch
55from tensorflow.contrib.data.python.ops.batching import padded_batch_and_drop_remainder
56from tensorflow.contrib.data.python.ops.batching import unbatch
57from tensorflow.contrib.data.python.ops.counter import Counter
58from tensorflow.contrib.data.python.ops.enumerate_ops import enumerate_dataset
59from tensorflow.contrib.data.python.ops.error_ops import ignore_errors
60from tensorflow.contrib.data.python.ops.get_single_element import get_single_element
61from tensorflow.contrib.data.python.ops.grouping import group_by_window
62from tensorflow.contrib.data.python.ops.interleave_ops import parallel_interleave
63from tensorflow.contrib.data.python.ops.interleave_ops import sloppy_interleave
64from tensorflow.contrib.data.python.ops.iterator_ops import make_saveable_from_iterator
65from tensorflow.contrib.data.python.ops.readers import read_batch_features
66from tensorflow.contrib.data.python.ops.readers import SqlDataset
67from tensorflow.contrib.data.python.ops.resampling import rejection_resample
68from tensorflow.contrib.data.python.ops.scan_ops import scan
69from tensorflow.contrib.data.python.ops.shuffle_ops import shuffle_and_repeat
70# pylint: enable=unused-import
71
72from tensorflow.python.util.all_util import remove_undocumented
73remove_undocumented(__name__)
74