Commit 7c06ae2f authored by Yong Tang's avatar Yong Tang Committed by Rasmus Munk Larsen
Browse files

Remove warnings for initialize_variables (#18023)



The `initialize_variables` has been deprecated and replaced with
`tf.variables_initializer`.

This fix makes the change and fixes the following warning in array_ops_test.py:
```
WARNING:tensorflow:From /private/var/tmp/_bazel_ytang/48f7de64c479bcefe5e55c65866b55a6/execroot/org_tensorflow/bazel-out/darwin-opt/bin/tensorflow/python/kernel_tests/array_ops_test.runfiles/org_tensorflow/tensorflow/python/util/tf_should_use.py:118: initialize_variables (from tensorflow.python.ops.variables) is deprecated and will be removed after 2017-03-02.
Instructions for updating:
Use `tf.variables_initializer` instead.
```

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
parent 1712002a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment