aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/slim
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-01-15 09:00:56 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-01-15 09:07:24 -0800
commit9654cf9e2d555076548483a05e90d6581befdc95 (patch)
treec500bebda1ddab7130b3719dffae348b8f9f4c99 /tensorflow/contrib/slim
parente72067896c7b02d5bc35ec1c107c45ad06092b7b (diff)
Add tf.tables_initializer as a replacement for tf.initialize_all_tables, and
update callers in tensorflow. Deprecated tf.initialize_all_tables. Change: 144575599
Diffstat (limited to 'tensorflow/contrib/slim')
-rw-r--r--tensorflow/contrib/slim/python/slim/learning.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/contrib/slim/python/slim/learning.py b/tensorflow/contrib/slim/python/slim/learning.py
index 415b766512..b87342873e 100644
--- a/tensorflow/contrib/slim/python/slim/learning.py
+++ b/tensorflow/contrib/slim/python/slim/learning.py
@@ -627,7 +627,7 @@ def train(train_op,
init_feed_dict: A feed dictionary to use when executing the `init_op`.
local_init_op: The local initialization operation. If left to its default
value, then the session is initialized by calling
- `tf.local_variables_initializer()` and `tf.initialize_all_tables()`.
+ `tf.local_variables_initializer()` and `tf.tables_initializer()`.
init_fn: An optional callable to be executed after `init_op` is called. The
callable must accept one argument, the session being initialized.
ready_op: Operation to check if the model is ready to use. If left to its
@@ -697,7 +697,7 @@ def train(train_op,
if local_init_op == _USE_DEFAULT:
local_init_op = control_flow_ops.group(
tf_variables.local_variables_initializer(),
- data_flow_ops.initialize_all_tables())
+ data_flow_ops.tables_initializer())
if sync_optimizer is not None and isinstance(
sync_optimizer, sync_replicas_optimizer.SyncReplicasOptimizer):