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
OpenDAS
nni
Commits
82791fc1
Commit
82791fc1
authored
Mar 15, 2019
by
Yunfeng Wang
Committed by
QuanluZhang
Mar 15, 2019
Browse files
fix dropout_rate's range (#855)
dropout_rate should be in range [0, 1]
parent
d7ffef29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docs/en_US/Trials.md
docs/en_US/Trials.md
+1
-1
No files found.
docs/en_US/Trials.md
View file @
82791fc1
...
@@ -92,7 +92,7 @@ with tf.Session() as sess:
...
@@ -92,7 +92,7 @@ with tf.Session() as sess:
batch_size = 128
batch_size = 128
for i in range(10000):
for i in range(10000):
batch = mnist.train.next_batch(batch_size)
batch = mnist.train.next_batch(batch_size)
+ """@nni.variable(nni.choice(1, 5), name=dropout_rate)"""
+ """@nni.variable(nni.choice(
0.
1,
0.
5), name=dropout_rate)"""
dropout_rate = 0.5
dropout_rate = 0.5
mnist_network.train_step.run(feed_dict={mnist_network.images: batch[0],
mnist_network.train_step.run(feed_dict={mnist_network.images: batch[0],
mnist_network.labels: batch[1],
mnist_network.labels: batch[1],
...
...
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