Updated bidirectional_rnn() to 0.8 API
This commit is contained in:
parent
6bcbaeccc8
commit
78c93711f1
@ -529,7 +529,7 @@
|
|||||||
" \n",
|
" \n",
|
||||||
" # Reshape outputs from a list of n_steps tensors each of shape [batch_size, 2*n_cell_dim]\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",
|
" # 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",
|
" outputs = tf.reshape(outputs, [-1, 2*n_cell_dim])\n",
|
||||||
" \n",
|
" \n",
|
||||||
" #Hidden layer with clipped RELU activation and dropout\n",
|
" #Hidden layer with clipped RELU activation and dropout\n",
|
||||||
@ -1647,7 +1647,7 @@
|
|||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython2",
|
"pygments_lexer": "ipython2",
|
||||||
"version": "2.7.10"
|
"version": "2.7.11"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
Loading…
Reference in New Issue
Block a user