Merge branch 'francotheengineer-master'

main
Aurélien Geron 2017-10-18 09:45:16 +02:00
commit da9ed522b9
1 changed files with 8 additions and 1 deletions

View File

@ -1386,6 +1386,13 @@
"outputs, states = tf.nn.dynamic_rnn(multi_layer_cell, X, dtype=tf.float32)" "outputs, states = tf.nn.dynamic_rnn(multi_layer_cell, X, dtype=tf.float32)"
] ]
}, },
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Alternatively, since TensorFlow 1.1, you can use the `tf.contrib.rnn.DeviceWrapper` class (alias `tf.nn.rnn_cell.DeviceWrapper` since TF 1.2)."
]
},
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 76, "execution_count": 76,
@ -2706,7 +2713,7 @@
"name": "python", "name": "python",
"nbconvert_exporter": "python", "nbconvert_exporter": "python",
"pygments_lexer": "ipython3", "pygments_lexer": "ipython3",
"version": "3.5.2" "version": "3.6.2"
}, },
"nav_menu": {}, "nav_menu": {},
"toc": { "toc": {