Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How does the "init_all_vars_op" mean? What is the definition of this in your python script? #6

Closed
chouchou1988 opened this issue Jul 10, 2018 · 1 comment

Comments

@chouchou1988
Copy link

No description provided.

@tebesu
Copy link
Owner

tebesu commented Jul 15, 2018

Please see line 16 in the blog post for the python code https://tebesu.github.io/posts/Training-a-TensorFlow-graph-in-C++-API which is

init = tf.initialize_variables(tf.all_variables(), name='init_all_vars_op')

This will initialize all variables in the graph and assign them the initial values. In the current versions of tensorflow this is tf.global_variables_initializer().

@tebesu tebesu closed this as completed Jan 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants