Commit 16188ae2 authored by Henry-E's avatar Henry-E Committed by GitHub
Browse files

Update deprecated function

Update based on the error message:
 WARNING:tensorflow:From ./neural_programmer/parameters.py:75 in parameters.: initialize_all_variables (from tensorflow.python.ops.variables) is deprecated and will be removed after 2017-03-02.
parent 2fa6057a
...@@ -72,7 +72,7 @@ class Parameters: ...@@ -72,7 +72,7 @@ class Parameters:
self.RandomUniformInit([1, embedding_dims])) self.RandomUniformInit([1, embedding_dims]))
params["break_conditional"] = tf.Variable( params["break_conditional"] = tf.Variable(
self.RandomUniformInit([2 * embedding_dims, embedding_dims])) self.RandomUniformInit([2 * embedding_dims, embedding_dims]))
init = tf.initialize_all_variables() init = tf.global_variables_initializer()
return params, global_step, init return params, global_step, init
def RandomUniformInit(self, shape): def RandomUniformInit(self, shape):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment