We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6adf454 + e6f7756 commit 71c196cCopy full SHA for 71c196c
samples/core/guide/autograph.ipynb
@@ -740,7 +740,7 @@
740
"@autograph.convert(recursive=True)\n",
741
"def train(train_ds, test_ds, hp):\n",
742
" m = mlp_model((28 * 28,))\n",
743
- " opt = tf.train.MomentumOptimizer(hp.learning_rate, 0.9)\n",
+ " opt = tf.train.AdamOptimizer(hp.learning_rate)\n",
744
" \n",
745
" # We'd like to save our losses to a list. In order for AutoGraph\n",
746
" # to convert these lists into their graph equivalent,\n",
@@ -802,7 +802,7 @@
802
"source": [
803
"with tf.Graph().as_default() as g:\n",
804
" hp = tf.contrib.training.HParams(\n",
805
- " learning_rate=0.05,\n",
+ " learning_rate=0.005,\n",
806
" max_steps=500,\n",
807
" )\n",
808
" train_ds = setup_mnist_data(True, 50)\n",
@@ -837,4 +837,4 @@
837
"outputs": []
838
}
839
]
840
-}
+}
0 commit comments