Skip to content

Commit

Permalink
replace deprecated tf.initialize_all_variables with tf.global_variabl…
Browse files Browse the repository at this point in the history
…es_initializer (#184)
  • Loading branch information
DjangoPeng authored and jlewi committed Nov 29, 2017
1 parent 0b8eb70 commit 84241c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/tf_sample/tf_sample/tf_smoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def run(server, cluster_spec): # pylint: disable=too-many-statements, too-many-
c = tf.multiply(a, b)
results.append(c)

init_op = tf.initialize_all_variables()
init_op = tf.global_variables_initializer()

if server:
target = server.target
Expand Down

0 comments on commit 84241c2

Please sign in to comment.