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

Error in notebook 11 #2

Open
adazi opened this issue Nov 29, 2019 · 0 comments
Open

Error in notebook 11 #2

adazi opened this issue Nov 29, 2019 · 0 comments

Comments

@adazi
Copy link

adazi commented Nov 29, 2019

In notebook 11, the line
tf.set_random_seed(seed)
is deprecated and generates and error:
AttributeError: module 'tensorflow' has no attribute 'set_random_seed'

Apparently set_random_seed() has been replaced with random.set_seed(). The problem can be fixed by replacing that line with
tf.random.set_seed(seed)

See also this thread on the tensorflow repo: tensorflow/tensorflow#30070

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

1 participant