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 'contrib' #3

Open
Asaad-Pak opened this issue Nov 30, 2022 · 0 comments
Open

AttributeError: module 'tensorflow' has no attribute 'contrib' #3

Asaad-Pak opened this issue Nov 30, 2022 · 0 comments

Comments

@Asaad-Pak
Copy link

I am trying to run the following part of the code.

generator.call = tf.contrib.eager.defun(generator.call)
discriminator.call = tf.contrib.eager.defun(discriminator.call)

discriminator_optimizer = tf.train.AdamOptimizer(1e-4)
generator_optimizer = tf.train.AdamOptimizer(1e-4)

I am using google collab and I am encountering the following error:

AttributeError Traceback (most recent call last)
in
----> 1 generator.call = tf.contrib.eager.defun(generator.call)
2 discriminator.call = tf.contrib.eager.defun(discriminator.call)
3
4 discriminator_optimizer = tf.train.AdamOptimizer(1e-4)
5 generator_optimizer = tf.train.AdamOptimizer(1e-4)

AttributeError: module 'tensorflow' has no attribute 'contrib'

How to resolve this?

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