Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions Abstractive_Summarization.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -559,12 +559,10 @@
},
"source": [
"import tensorflow as tf\n",
"import os\n",
"from tensorflow.python.keras.layers import Layer\n",
"from tensorflow.python.keras import backend as K\n",
"\n",
"\n",
"class AttentionLayer(Layer):\n",
"class AttentionLayer(tf.keras.layers.Layer):\n",
" \"\"\"\n",
" This class implements Bahdanau attention (https://arxiv.org/pdf/1409.0473.pdf).\n",
" There are three sets of weights introduced W_a, U_a, and V_a\n",
Expand Down Expand Up @@ -1595,4 +1593,4 @@
"outputs": []
}
]
}
}