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

modify docqa #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

modify docqa #3

wants to merge 2 commits into from

Conversation

YanZhangADS
Copy link

There are two files modified: docqa.ipynb and docqa/nn/recurrent_layers.py
Details:
conda create --name Python=3.6 (if not specify this, many other stuff will be installed, cause issue)
pip install tensorflow-gpu (I removed the part "==1.2" as I am currently use most recent version 1.10).

In a NC6 DLVM, I first created a new conda env with Python 3.6. In this env, I then pip installed tensorflow-gpu==1.2 successfully. When I check if the tensorflow works or not by "import tensorflow", it shows error msg. It is because DLVM has CUDA version 9.0, which is incompatible with tensorflow 1.2.

I would suggest to include both tensorflow version and corresponding CUDA version. If DLVM keeps upgrading, the user is likely to encounter issue again.

===========================================
in file docqa/nn/recurrent_layers.py,

ModuleNotFoundError: No module named 'tensorflow.contrib.keras.python'
from tensorflow.contrib.keras.python.keras.initializers import TruncatedNormal

I changed it to:
from tensorflow.keras.initializers import TruncatedNormal

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

Successfully merging this pull request may close these issues.

1 participant