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

No module named 'tensorflow.contrib' #13

Open
mitya12342 opened this issue Apr 15, 2020 · 2 comments
Open

No module named 'tensorflow.contrib' #13

mitya12342 opened this issue Apr 15, 2020 · 2 comments

Comments

@mitya12342
Copy link

I am new to tensorflow but something seems changed. I get this when i try to train

Traceback (most recent call last):
  File "./train.py", line 14, in <module>
    import model, sample, encoder
  File "/content/gpt-2/src/model.py", line 3, in <module>
    from tensorflow.contrib.training import HParams
ModuleNotFoundError: No module named 'tensorflow.contrib'

I even tried %tensorflow_version 1.x

@ddaskan
Copy link

ddaskan commented Apr 21, 2020

You need specific version such as 1.12 which you cannot do via %tensorflow_version 1.x. Fortunately, there is a workaround to downgrade, try to apply as the link; https://stackoverflow.com/a/54445624/6401202

@Kreijstal
Copy link

Can you provide an example google colab link?

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