"python/vscode:/vscode.git/clone" did not exist on "d09a51f1f62038ec25225012dec6bb7488eb8054"
Commit 4de34a4c authored by Neal Wu's avatar Neal Wu Committed by GitHub
Browse files

Merge pull request #878 from Henry-E/patch-1

Update deprecated function
parents f9baace2 16188ae2
...@@ -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