Updated bidirectional_rnn() to 0.8 API

This commit is contained in:
Kelly Davis 2016-05-28 20:12:18 +02:00
parent 6bcbaeccc8
commit 78c93711f1

View File

@ -529,7 +529,7 @@
" \n",
" # Reshape outputs from a list of n_steps tensors each of shape [batch_size, 2*n_cell_dim]\n",
" # to a single tensor of shape [n_steps*batch_size, 2*n_cell_dim]\n",
" outputs = tf.pack(outputs)\n",
" outputs = tf.pack(outputs[0])\n",
" outputs = tf.reshape(outputs, [-1, 2*n_cell_dim])\n",
" \n",
" #Hidden layer with clipped RELU activation and dropout\n",
@ -1647,7 +1647,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.10"
"version": "2.7.11"
}
},
"nbformat": 4,