From 58b4d147ea6d30f2c66e433600c824379419241b Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Wed, 11 Jan 2017 22:26:02 -0800 Subject: [PATCH] Correct misspelling in comments referring to how to initialize local variables. Change: 144289263 --- tensorflow/python/training/input.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tensorflow/python/training/input.py b/tensorflow/python/training/input.py index 77ae20221f7..62b2b85a04f 100644 --- a/tensorflow/python/training/input.py +++ b/tensorflow/python/training/input.py @@ -69,7 +69,7 @@ def match_filenames_once(pattern, name=None): def limit_epochs(tensor, num_epochs=None, name=None): """Returns tensor `num_epochs` times and then raises an `OutOfRange` error. - Note: creates local counter `epochs`. Use `local_variable_initializer()` to + Note: creates local counter `epochs`. Use `local_variables_initializer()` to initialize local variables. Args: @@ -111,7 +111,7 @@ def input_producer(input_tensor, """Output the rows of `input_tensor` to a queue for an input pipeline. Note: if `num_epochs` is not `None`, this function creates local counter - `epochs`. Use `local_variable_initializer()` to initialize local variables. + `epochs`. Use `local_variables_initializer()` to initialize local variables. Args: input_tensor: A tensor with the rows to produce. Must be at least @@ -180,7 +180,7 @@ def string_input_producer(string_tensor, """Output strings (e.g. filenames) to a queue for an input pipeline. Note: if `num_epochs` is not `None`, this function creates local counter - `epochs`. Use `local_variable_initializer()` to initialize local variables. + `epochs`. Use `local_variables_initializer()` to initialize local variables. Args: string_tensor: A 1-D string tensor with the strings to produce. @@ -235,7 +235,7 @@ def range_input_producer(limit, num_epochs=None, shuffle=True, seed=None, """Produces the integers from 0 to limit-1 in a queue. Note: if `num_epochs` is not `None`, this function creates local counter - `epochs`. Use `local_variable_initializer()` to initialize local variables. + `epochs`. Use `local_variables_initializer()` to initialize local variables. Args: limit: An int32 scalar tensor. @@ -831,7 +831,7 @@ def batch(tensors, batch_size, num_threads=1, capacity=32, operations that depend on fixed batch_size would fail. Note: if `num_epochs` is not `None`, this function creates local counter - `epochs`. Use `local_variable_initializer()` to initialize local variables. + `epochs`. Use `local_variables_initializer()` to initialize local variables. Args: tensors: The list or dictionary of tensors to enqueue. @@ -1124,7 +1124,7 @@ def shuffle_batch(tensors, batch_size, capacity, min_after_dequeue, operations that depend on fixed batch_size would fail. Note: if `num_epochs` is not `None`, this function creates local counter - `epochs`. Use `local_variable_initializer()` to initialize local variables. + `epochs`. Use `local_variables_initializer()` to initialize local variables. Args: tensors: The list or dictionary of tensors to enqueue.