Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
71c196c1
Unverified
Commit
71c196c1
authored
Jul 19, 2018
by
Mark Daoust
Committed by
GitHub
Jul 19, 2018
Browse files
Merge pull request #4837 from mdanatg/master
Update the training schedule for better convergence
parents
6adf454e
e6f7756d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
samples/core/guide/autograph.ipynb
samples/core/guide/autograph.ipynb
+3
-3
No files found.
samples/core/guide/autograph.ipynb
View file @
71c196c1
...
...
@@ -740,7 +740,7 @@
"@autograph.convert(recursive=True)\n",
"def train(train_ds, test_ds, hp):\n",
" m = mlp_model((28 * 28,))\n",
" opt = tf.train.
Momentu
mOptimizer(hp.learning_rate
, 0.9
)\n",
" opt = tf.train.
Ada
mOptimizer(hp.learning_rate)\n",
" \n",
" # We'd like to save our losses to a list. In order for AutoGraph\n",
" # to convert these lists into their graph equivalent,\n",
...
...
@@ -802,7 +802,7 @@
"source": [
"with tf.Graph().as_default() as g:\n",
" hp = tf.contrib.training.HParams(\n",
" learning_rate=0.05,\n",
" learning_rate=0.
0
05,\n",
" max_steps=500,\n",
" )\n",
" train_ds = setup_mnist_data(True, 50)\n",
...
...
@@ -837,4 +837,4 @@
"outputs": []
}
]
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment