aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow
diff options
context:
space:
mode:
authorGravatar Rohan Jain <rohanj@google.com>2017-04-26 13:15:06 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-04-26 14:25:24 -0700
commitb82cb8e93245b0de66794f8986db453d022ae341 (patch)
treeb49e66ba226e73b9e1375fe63c04bed35902c69f /tensorflow
parent0f30fd374f0ad00bfeca434f544cc52f6f559499 (diff)
Moving _read_keyed_batch_{features, examples}_shared_queue from private to public.
Change: 154343093
Diffstat (limited to 'tensorflow')
-rw-r--r--tensorflow/contrib/learn/python/learn/learn_io/__init__.py4
-rw-r--r--tensorflow/contrib/learn/python/learn/learn_io/graph_io.py48
-rw-r--r--tensorflow/contrib/learn/python/learn/learn_io/graph_io_test.py7
3 files changed, 29 insertions, 30 deletions
diff --git a/tensorflow/contrib/learn/python/learn/learn_io/__init__.py b/tensorflow/contrib/learn/python/learn/learn_io/__init__.py
index 4567928358..06c3782a47 100644
--- a/tensorflow/contrib/learn/python/learn/learn_io/__init__.py
+++ b/tensorflow/contrib/learn/python/learn/learn_io/__init__.py
@@ -21,14 +21,14 @@ from __future__ import print_function
from tensorflow.contrib.learn.python.learn.learn_io.dask_io import extract_dask_data
from tensorflow.contrib.learn.python.learn.learn_io.dask_io import extract_dask_labels
from tensorflow.contrib.learn.python.learn.learn_io.dask_io import HAS_DASK
-from tensorflow.contrib.learn.python.learn.learn_io.graph_io import _read_keyed_batch_examples_shared_queue
-from tensorflow.contrib.learn.python.learn.learn_io.graph_io import _read_keyed_batch_features_shared_queue
from tensorflow.contrib.learn.python.learn.learn_io.graph_io import queue_parsed_features
from tensorflow.contrib.learn.python.learn.learn_io.graph_io import read_batch_examples
from tensorflow.contrib.learn.python.learn.learn_io.graph_io import read_batch_features
from tensorflow.contrib.learn.python.learn.learn_io.graph_io import read_batch_record_features
from tensorflow.contrib.learn.python.learn.learn_io.graph_io import read_keyed_batch_examples
+from tensorflow.contrib.learn.python.learn.learn_io.graph_io import read_keyed_batch_examples_shared_queue
from tensorflow.contrib.learn.python.learn.learn_io.graph_io import read_keyed_batch_features
+from tensorflow.contrib.learn.python.learn.learn_io.graph_io import read_keyed_batch_features_shared_queue
from tensorflow.contrib.learn.python.learn.learn_io.numpy_io import numpy_input_fn
from tensorflow.contrib.learn.python.learn.learn_io.pandas_io import extract_pandas_data
from tensorflow.contrib.learn.python.learn.learn_io.pandas_io import extract_pandas_labels
diff --git a/tensorflow/contrib/learn/python/learn/learn_io/graph_io.py b/tensorflow/contrib/learn/python/learn/learn_io/graph_io.py
index 9bdd3206b2..6b552f59d0 100644
--- a/tensorflow/contrib/learn/python/learn/learn_io/graph_io.py
+++ b/tensorflow/contrib/learn/python/learn/learn_io/graph_io.py
@@ -174,17 +174,17 @@ def read_keyed_batch_examples(file_pattern,
seed=seed)
-def _read_keyed_batch_examples_shared_queue(file_pattern,
- batch_size,
- reader,
- randomize_input=True,
- num_epochs=None,
- queue_capacity=10000,
- num_threads=1,
- read_batch_size=1,
- parse_fn=None,
- name=None,
- seed=None):
+def read_keyed_batch_examples_shared_queue(file_pattern,
+ batch_size,
+ reader,
+ randomize_input=True,
+ num_epochs=None,
+ queue_capacity=10000,
+ num_threads=1,
+ read_batch_size=1,
+ parse_fn=None,
+ name=None,
+ seed=None):
"""Adds operations to read, queue, batch `Example` protos.
Given file pattern (or list of files), will setup a shared queue for file
@@ -512,18 +512,18 @@ def read_keyed_batch_features(file_pattern,
name=scope)
-def _read_keyed_batch_features_shared_queue(file_pattern,
- batch_size,
- features,
- reader,
- randomize_input=True,
- num_epochs=None,
- queue_capacity=10000,
- reader_num_threads=1,
- feature_queue_capacity=100,
- num_queue_runners=2,
- parse_fn=None,
- name=None):
+def read_keyed_batch_features_shared_queue(file_pattern,
+ batch_size,
+ features,
+ reader,
+ randomize_input=True,
+ num_epochs=None,
+ queue_capacity=10000,
+ reader_num_threads=1,
+ feature_queue_capacity=100,
+ num_queue_runners=2,
+ parse_fn=None,
+ name=None):
"""Adds operations to read, queue, batch and parse `Example` protos.
Given file pattern (or list of files), will setup a shared queue for file
@@ -571,7 +571,7 @@ def _read_keyed_batch_features_shared_queue(file_pattern,
"""
with ops.name_scope(name, 'read_batch_features', [file_pattern]) as scope:
- keys, examples = _read_keyed_batch_examples_shared_queue(
+ keys, examples = read_keyed_batch_examples_shared_queue(
file_pattern,
batch_size,
reader,
diff --git a/tensorflow/contrib/learn/python/learn/learn_io/graph_io_test.py b/tensorflow/contrib/learn/python/learn/learn_io/graph_io_test.py
index 542aaabc95..f25f7caf61 100644
--- a/tensorflow/contrib/learn/python/learn/learn_io/graph_io_test.py
+++ b/tensorflow/contrib/learn/python/learn/learn_io/graph_io_test.py
@@ -26,7 +26,6 @@ import tempfile
from six.moves import xrange # pylint: disable=redefined-builtin
from tensorflow.contrib.learn.python.learn.learn_io import graph_io
-from tensorflow.contrib.learn.python.learn.learn_io.graph_io import _read_keyed_batch_examples_shared_queue
from tensorflow.python.client import session as session_lib
from tensorflow.python.framework import constant_op
from tensorflow.python.framework import dtypes as dtypes_lib
@@ -464,7 +463,7 @@ class GraphIOTest(test.TestCase):
name = "my_batch"
with ops.Graph().as_default() as g, self.test_session(graph=g) as session:
- keys, inputs = _read_keyed_batch_examples_shared_queue(
+ keys, inputs = graph_io.read_keyed_batch_examples_shared_queue(
filenames,
batch_size,
reader=io_ops.TextLineReader,
@@ -528,7 +527,7 @@ class GraphIOTest(test.TestCase):
with ops.Graph().as_default() as g1, session_lib.Session(
server.target, graph=g1) as session:
- keys, inputs = _read_keyed_batch_examples_shared_queue(
+ keys, inputs = graph_io.read_keyed_batch_examples_shared_queue(
filenames,
batch_size,
reader=io_ops.TextLineReader,
@@ -557,7 +556,7 @@ class GraphIOTest(test.TestCase):
with ops.Graph().as_default() as g2, session_lib.Session(
server.target, graph=g2) as session:
- keys, inputs = _read_keyed_batch_examples_shared_queue(
+ keys, inputs = graph_io.read_keyed_batch_examples_shared_queue(
filenames,
batch_size,
reader=io_ops.TextLineReader,