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

AttributeError: module 'tensorflow' has no attribute 'set_random_seed' #53

Open
ManishEnishetty opened this issue Jan 28, 2021 · 2 comments

Comments

@ManishEnishetty
Copy link

Hi Martin,

I have the following issue while compiling the code. please let me know how to resolve this.

when I run the python command

python mnist_1.0_softmax.py
I'm getting this error
AttributeError: module 'tensorflow' has no attribute 'set_random_seed'

@goolick
Copy link

goolick commented Dec 2, 2021

Same here. Running this in bash

@goolick
Copy link

goolick commented Dec 2, 2021

set_random_seed(0) is deprecated according to this:
hwwang55/GCN-LPA#3

I replaced all occurrences of tf.set_random_seed(0) with tf.set.random_seed(0) and then... got a different error.

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