Skip to content

Comments

modify docqa#3

Open
YanZhangADS wants to merge 2 commits intoantriv:masterfrom
YanZhangADS:master
Open

modify docqa#3
YanZhangADS wants to merge 2 commits intoantriv:masterfrom
YanZhangADS:master

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