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
c94996c7
Commit
c94996c7
authored
Feb 24, 2019
by
Lee
Committed by
chicm-ms
Feb 24, 2019
Browse files
Add different tuner config files for config_test (#760)
Add integration test cases for tuners.
parent
5f8ffcd5
Changes
22
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
tools/nni_annotation/testcase/annotated/mnist.py
tools/nni_annotation/testcase/annotated/mnist.py
+1
-1
tools/nni_annotation/testcase/usercode/mnist.py
tools/nni_annotation/testcase/usercode/mnist.py
+1
-1
No files found.
tools/nni_annotation/testcase/annotated/mnist.py
View file @
c94996c7
...
@@ -127,7 +127,7 @@ def bias_variable(shape):
...
@@ -127,7 +127,7 @@ def bias_variable(shape):
def
main
():
def
main
():
data_dir
=
'/tmp/tensorflow/mnist/input_data'
data_dir
=
'/tmp/tensorflow/mnist/input_data'
mnist
=
input_data
.
read_data_sets
(
data_dir
,
one_hot
=
True
)
mnist
=
input_data
.
read_data_sets
(
data_dir
,
one_hot
=
True
)
logger
.
debug
(
'Mnist download data do
w
n.'
)
logger
.
debug
(
'Mnist download data don
e
.'
)
mnist_network
=
MnistNetwork
()
mnist_network
=
MnistNetwork
()
mnist_network
.
build_network
()
mnist_network
.
build_network
()
logger
.
debug
(
'Mnist build network done.'
)
logger
.
debug
(
'Mnist build network done.'
)
...
...
tools/nni_annotation/testcase/usercode/mnist.py
View file @
c94996c7
...
@@ -137,7 +137,7 @@ def main():
...
@@ -137,7 +137,7 @@ def main():
# Import data
# Import data
data_dir
=
'/tmp/tensorflow/mnist/input_data'
data_dir
=
'/tmp/tensorflow/mnist/input_data'
mnist
=
input_data
.
read_data_sets
(
data_dir
,
one_hot
=
True
)
mnist
=
input_data
.
read_data_sets
(
data_dir
,
one_hot
=
True
)
logger
.
debug
(
'Mnist download data do
w
n.'
)
logger
.
debug
(
'Mnist download data don
e
.'
)
# Create the model
# Create the model
# Build the graph for the deep net
# Build the graph for the deep net
...
...
Prev
1
2
Next
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