uclnlp / gntp

MIT License
57 stars 15 forks source link

Demo Does Not run with Tensorflow Version 2.0 #1

Open dbl001 opened 4 years ago

dbl001 commented 4 years ago

$ ipython Python 3.6.7 | packaged by conda-forge | (default, Nov 6 2019, 16:19:42) Type 'copyright', 'credits' or 'license' for more information IPython 7.11.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import tensorflow

In [2]: print(tensorflow.version)
2.0.0

In [3]: import tensorflow.contrib

ModuleNotFoundError Traceback (most recent call last)

in ----> 1 import tensorflow.contrib ModuleNotFoundError: No module named 'tensorflow.contrib'
pminervini commented 4 years ago

Yep it's currently a problem - our code is still based on TF 1.x

I can start porting it to TF 2.x in the second half of February

570710065-jili commented 2 years ago

TF 1.x can't run on cuda11.

Yanzhiwen001 commented 7 months ago

Hi, did you managed to transfer it to TF2.x? I also have the problem with higher cuda version on GPU .