From de9da7d2886327098a9a62d8ac466d2c75aae91a Mon Sep 17 00:00:00 2001 From: Merzoug Imad-eddine Date: Fri, 17 Apr 2020 17:18:16 +0100 Subject: [PATCH] Update RNN - Text Generator.ipynb model predict a etait update et possede un batch_size default a 32 , on doit set le batch_size a 64 ou ca ne marche pas https://github.com/tensorflow/tensorflow/blob/5115a0205400a205288920dea495a10ce0f0ef4e/tensorflow/python/keras/engine/training.py#L1254 --- RNN - Text Generator.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RNN - Text Generator.ipynb b/RNN - Text Generator.ipynb index 3ab8bf0..128bd13 100644 --- a/RNN - Text Generator.ipynb +++ b/RNN - Text Generator.ipynb @@ -479,14 +479,14 @@ "batch_inputs, batch_targets = next(gen_batch(inputs, targets, 50, 64))\n", "\n", "# Make a first prediction\n", - "outputs = model.predict(batch_inputs)\n", + "outputs = model.predict(batch_inputs,batch_size=64)\n", "first_prediction = outputs[0][0]\n", "\n", "# Reset the states of the RNN states\n", "model.reset_states()\n", "\n", "# Make an other prediction to check the difference\n", - "outputs = model.predict(batch_inputs)\n", + "outputs = model.predict(batch_inputs,batch_size=64)\n", "second_prediction = outputs[0][0]\n", "\n", "# Check if both prediction are equal\n",