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

tf.get_variable and tf.Variable #189

Open
sunpenglv opened this issue Jan 15, 2020 · 2 comments
Open

tf.get_variable and tf.Variable #189

sunpenglv opened this issue Jan 15, 2020 · 2 comments

Comments

@sunpenglv
Copy link

W = tf.get_variable(

why use tf.get_variable but not tf.Variable?

@rohan12345a
Copy link

Use tf.get_variable() when you want to reuse variables with a specific name across different parts of your TensorFlow graph.
Use tf.Variable() when you explicitly want to create a new variable and do not need to worry about variable name conflicts or reuse.

@xuqiangxq
Copy link

xuqiangxq commented Apr 9, 2024 via email

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

3 participants