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

[BUG] AttributeError: module 'tensorflow.keras.initializers' has no attribute 'truncated_normal'\n in multinomial_vae.py #1513

Closed
k9luo opened this issue Aug 31, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@k9luo
Copy link

k9luo commented Aug 31, 2021

Description

Based on the Global Settings and Imports in the example notebook for multinomial_vae, it requires tensorflow==2.2.0-rc1 and keras==2.3.1. After I installed these two libraries and ran the code, I got AttributeError: module 'tensorflow.keras.initializers' has no attribute 'truncated_normal'\n when running multinomial_vae.py. According to Tensorflow 2.2 documentation, there isn't a class called truncated_normal but there is one named TruncatedNormal.

How do we replicate the issue?

Running the notebook would probably encounter this error.

Expected behavior (i.e. solution)

Change truncated_normal to TruncatedNormal in here and here should resolve this problem.

@k9luo k9luo added the bug Something isn't working label Aug 31, 2021
@miguelgfierro
Copy link
Collaborator

this PR should fix your problem #1565

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants