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

ModuleNotFoundError: No module named 'tensorflow.contrib' #572

Open
adithya604 opened this issue Apr 16, 2020 · 1 comment
Open

ModuleNotFoundError: No module named 'tensorflow.contrib' #572

adithya604 opened this issue Apr 16, 2020 · 1 comment

Comments

@adithya604
Copy link

adithya604 commented Apr 16, 2020

Describe the bug
I have installed finetune in colab. It got installed but I failed to import fine tune.

Using TensorFlow backend.
/usr/local/lib/python3.6/dist-packages/finetune/base_models/oscar/ra.py:87: UserWarning: Failed to load Oscar's optimised kernels. Falling back to tensorflow version.
  warnings.warn("Failed to load Oscar's optimised kernels. Falling back to tensorflow version.")

---------------------------------------------------------------------------

ModuleNotFoundError                       Traceback (most recent call last)

<ipython-input-25-067014d60054> in <module>()
----> 1 import finetune

4 frames

/usr/local/lib/python3.6/dist-packages/finetune/saver.py in <module>()
      9 import tensorflow as tf
     10 from tensorflow.estimator import SessionRunHook
---> 11 from tensorflow.contrib.estimator.python.estimator.early_stopping import _StopOnPredicateHook
     12 
     13 from finetune.errors import FinetuneError

ModuleNotFoundError: No module named 'tensorflow.contrib'
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.

Minimum Reproducible Example
A short code snippet which reproduces the exception

Expected behavior
A clear and concise description of what you expected to happen.

Additional context
tf.__version__ (Tensorflow version) is '2.2.0-rc3'

@madisonmay
Copy link
Contributor

Hey @adithya604! Although an eventual migration to TF2 is planned this repo currently only supports TF version 1.15. My apologies -- we do intend to get around to 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

2 participants