diff --git a/Transfer_Learning/document-qa/docqa.ipynb b/Transfer_Learning/document-qa/docqa.ipynb index 09dda22..924e660 100644 --- a/Transfer_Learning/document-qa/docqa.ipynb +++ b/Transfer_Learning/document-qa/docqa.ipynb @@ -20,18 +20,18 @@ "\n", "## Setup\n", "### Dependencies\n", - "We require python >= 3.5, tensorflow 1.2, and a handful of other supporting libraries. \n", + "We require python >= 3.5, tensorflow 1.10, and a handful of other supporting libraries. \n", "Tensorflow should be installed separately following the docs. To install the other dependencies use the commands below from a terminal in the linux DLVM first.\n", "\n", "```\n", "\n", - "conda create --name \n", + "conda create --name Python=3.6\n", "source activate \n", "cd /home//notebooks\n", "git clone https://github.com/antriv/Transfer_Learning_Text.git\n", "cd Transfer_Learning_Text/Transfer_Learning/document-qa/\n", "pip install -r requirements.txt\n", - "pip install tensorflow-gpu==1.2\n", + "pip install tensorflow-gpu\n", "python -m nltk.downloader punkt stopwords\n", "```\n", "\n", @@ -40,10 +40,10 @@ "```\n", "source activate \n", "pip install ipykernel\n", - "sudo \"/home//.conda/envs//bin/python\" -m ipykernel install --name --display-name \"\"\n", + "sudo \"/home//.conda/envs//bin/python\" -m ipykernel install --name --display-name \"\"\n", "```\n", "\n", - "To run this notebook, choose the kernel `\"\"`" + "To run this notebook, choose the kernel `\"\"`" ] }, { @@ -198,7 +198,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.4" + "version": "3.6.6" } }, "nbformat": 4, diff --git a/Transfer_Learning/document-qa/docqa/nn/recurrent_layers.py b/Transfer_Learning/document-qa/docqa/nn/recurrent_layers.py index e05a8a3..7214f09 100644 --- a/Transfer_Learning/document-qa/docqa/nn/recurrent_layers.py +++ b/Transfer_Learning/document-qa/docqa/nn/recurrent_layers.py @@ -5,7 +5,7 @@ MergeLayer, Encoder from tensorflow.contrib.cudnn_rnn.python.ops import cudnn_rnn_ops #from tensorflow.contrib.cudnn_rnn.python.ops.cudnn_rnn_ops import CudnnCompatibleGRUCell -from tensorflow.contrib.keras.python.keras.initializers import TruncatedNormal +from tensorflow.keras.initializers import TruncatedNormal from tensorflow.contrib.rnn import LSTMStateTuple, LSTMBlockFusedCell, GRUBlockCell from tensorflow.python.ops.rnn import dynamic_rnn, bidirectional_dynamic_rnn