kentonl / e2e-coref

End-to-end Neural Coreference Resolution
Apache License 2.0
524 stars 173 forks source link

error in util.py #76

Closed ghost closed 5 years ago

ghost commented 5 years ago

Hi I am using the following version of tensorflow: tensorflow-estimator 2.0.1 tensorflow-gpu 2.0.0 tensorflow-hub 0.6.0

I got the following error; thanks for your help

=> bash setup_training.sh

Traceback (most recent call last): File "minimize.py", line 13, in import util File "/remote/user/julia/dev/coref/e2e-coref/util.py", line 211, in class CustomLSTMCell(tf.contrib.rnn.RNNCell): AttributeError: 'module' object has no attribute 'contrib'

henryhust commented 5 years ago

The version of tensorflow is too high. In v2.0, there is no module called "contrib" i use tensorflow==1.14, everything is ok

ghost commented 5 years ago

cloud you please also tell me your tensorlfow-hub version and python version, I am getting still errors, thanks

On Thu, Oct 31, 2019 at 11:00 AM henry notifications@github.com wrote:

The version of tensorflow is too high. In v2.0, there is no module called "contrib" i use tensorflow==1.14, everything is ok

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kentonl/e2e-coref/issues/76?email_source=notifications&email_token=AM3GZMZ5FJDRTKRN7JCITBLQRKUDNA5CNFSM4JGZPGZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECXE65Q#issuecomment-548294518, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM3GZM62FWLEQX4X4ISY3D3QRKUDNANCNFSM4JGZPGZQ .

ghost commented 5 years ago

here is the error I get with the version you said tensorflow.python.framework.errors_impl.NotFoundError: libtensorflow_framework.so.2: cannot open shared object file: No such file or directory

On Thu, Oct 31, 2019 at 11:59 AM julia hane juliahane123@gmail.com wrote:

cloud you please also tell me your tensorlfow-hub version and python version, I am getting still errors, thanks

On Thu, Oct 31, 2019 at 11:00 AM henry notifications@github.com wrote:

The version of tensorflow is too high. In v2.0, there is no module called "contrib" i use tensorflow==1.14, everything is ok

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kentonl/e2e-coref/issues/76?email_source=notifications&email_token=AM3GZMZ5FJDRTKRN7JCITBLQRKUDNA5CNFSM4JGZPGZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECXE65Q#issuecomment-548294518, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM3GZM62FWLEQX4X4ISY3D3QRKUDNANCNFSM4JGZPGZQ .

ghost commented 5 years ago

Hi this works with setup_all, thanks, I close it now.