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
cd3a912a
"...resnet50_tensorflow.git" did not exist on "10939e58a915a94865aa729b7a64b0746e956463"
Unverified
Commit
cd3a912a
authored
Nov 27, 2019
by
SparkSnail
Committed by
GitHub
Nov 27, 2019
Browse files
Merge pull request #218 from microsoft/master
merge master
parents
a0846f2a
e9cba778
Changes
375
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
46 additions
and
140 deletions
+46
-140
test/config_test/examples/mnist-nas.test.yml
test/config_test/examples/mnist-nas.test.yml
+0
-21
test/config_test/examples/mnist-tfv1.test.yml
test/config_test/examples/mnist-tfv1.test.yml
+1
-1
test/config_test/multi_phase/multi_phase.py
test/config_test/multi_phase/multi_phase.py
+3
-0
test/config_test/multi_thread/multi_thread_trial.py
test/config_test/multi_thread/multi_thread_trial.py
+3
-0
test/config_test/multi_thread/multi_thread_tuner.py
test/config_test/multi_thread/multi_thread_tuner.py
+8
-0
test/config_test/tuners/mnist-curvefitting.test.yml
test/config_test/tuners/mnist-curvefitting.test.yml
+1
-1
test/config_test/tuners/mnist-gp.test.yml
test/config_test/tuners/mnist-gp.test.yml
+1
-1
test/config_test/tuners/mnist-gridsearch.test.yml
test/config_test/tuners/mnist-gridsearch.test.yml
+1
-1
test/config_test/tuners/mnist-metis.test.yml
test/config_test/tuners/mnist-metis.test.yml
+1
-1
test/generate_ts_config.py
test/generate_ts_config.py
+2
-19
test/metrics_test.py
test/metrics_test.py
+2
-19
test/metrics_test/trial.py
test/metrics_test/trial.py
+3
-0
test/naive_test.py
test/naive_test.py
+2
-19
test/naive_test/naive_assessor.py
test/naive_test/naive_assessor.py
+3
-0
test/naive_test/naive_trial.py
test/naive_test/naive_trial.py
+3
-0
test/naive_test/naive_tuner.py
test/naive_test/naive_tuner.py
+3
-0
test/pipelines-it-kubeflow.yml
test/pipelines-it-kubeflow.yml
+2
-19
test/pipelines-it-pai.yml
test/pipelines-it-pai.yml
+2
-19
test/remote_docker.py
test/remote_docker.py
+3
-0
test/tuner_test.py
test/tuner_test.py
+2
-19
No files found.
test/config_test/examples/mnist-nas.test.yml
deleted
100644 → 0
View file @
a0846f2a
authorName
:
nni
experimentName
:
default_test
maxExecDuration
:
5m
maxTrialNum
:
4
trialConcurrency
:
2
tuner
:
codeDir
:
../../../examples/tuners/random_nas_tuner
classFileName
:
random_nas_tuner.py
className
:
RandomNASTuner
trial
:
codeDir
:
../../../examples/trials/mnist-nas/classic_mode/
command
:
python3 mnist.py --batch_num
100
gpuNum
:
0
nasMode
:
classic_mode
useAnnotation
:
true
multiPhase
:
false
multiThread
:
false
trainingServicePlatform
:
local
test/config_test/examples/mnist.test.yml
→
test/config_test/examples/mnist
-tfv1
.test.yml
View file @
cd3a912a
...
@@ -12,7 +12,7 @@ assessor:
...
@@ -12,7 +12,7 @@ assessor:
classArgs
:
classArgs
:
optimize_mode
:
maximize
optimize_mode
:
maximize
trial
:
trial
:
codeDir
:
../../../examples/trials/mnist
codeDir
:
../../../examples/trials/mnist
-tfv1
command
:
python3 mnist.py --batch_num
100
command
:
python3 mnist.py --batch_num
100
gpuNum
:
0
gpuNum
:
0
...
...
test/config_test/multi_phase/multi_phase.py
View file @
cd3a912a
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import
time
import
time
import
nni
import
nni
...
...
test/config_test/multi_thread/multi_thread_trial.py
View file @
cd3a912a
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import
nni
import
nni
import
time
import
time
...
...
test/config_test/multi_thread/multi_thread_tuner.py
View file @
cd3a912a
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import
logging
import
time
import
time
from
nni.tuner
import
Tuner
from
nni.tuner
import
Tuner
...
@@ -7,14 +11,18 @@ class MultiThreadTuner(Tuner):
...
@@ -7,14 +11,18 @@ class MultiThreadTuner(Tuner):
self
.
parent_done
=
False
self
.
parent_done
=
False
def
generate_parameters
(
self
,
parameter_id
,
**
kwargs
):
def
generate_parameters
(
self
,
parameter_id
,
**
kwargs
):
logging
.
debug
(
'generate_parameters: %s %s'
,
parameter_id
,
kwargs
)
if
parameter_id
==
0
:
if
parameter_id
==
0
:
return
{
'x'
:
0
}
return
{
'x'
:
0
}
else
:
else
:
while
not
self
.
parent_done
:
while
not
self
.
parent_done
:
logging
.
debug
(
'parameter_id %s sleeping'
,
parameter_id
)
time
.
sleep
(
2
)
time
.
sleep
(
2
)
logging
.
debug
(
'parameter_id %s waked up'
,
parameter_id
)
return
{
'x'
:
1
}
return
{
'x'
:
1
}
def
receive_trial_result
(
self
,
parameter_id
,
parameters
,
value
,
**
kwargs
):
def
receive_trial_result
(
self
,
parameter_id
,
parameters
,
value
,
**
kwargs
):
logging
.
debug
(
'receive_trial_result: %s %s %s %s'
,
parameter_id
,
parameters
,
value
,
kwargs
)
if
parameter_id
==
0
:
if
parameter_id
==
0
:
self
.
parent_done
=
True
self
.
parent_done
=
True
...
...
test/config_test/tuners/mnist-curvefitting.test.yml
View file @
cd3a912a
...
@@ -17,7 +17,7 @@ assessor:
...
@@ -17,7 +17,7 @@ assessor:
start_step
:
6
start_step
:
6
threshold
:
0.95
threshold
:
0.95
trial
:
trial
:
codeDir
:
../../../examples/trials/mnist
codeDir
:
../../../examples/trials/mnist
-tfv1
command
:
python3 mnist.py --batch_num
100
command
:
python3 mnist.py --batch_num
100
gpuNum
:
0
gpuNum
:
0
...
...
test/config_test/tuners/mnist-gp.test.yml
View file @
cd3a912a
...
@@ -22,7 +22,7 @@ assessor:
...
@@ -22,7 +22,7 @@ assessor:
classArgs
:
classArgs
:
optimize_mode
:
maximize
optimize_mode
:
maximize
trial
:
trial
:
codeDir
:
../../../examples/trials/mnist
codeDir
:
../../../examples/trials/mnist
-tfv1
command
:
python3 mnist.py --batch_num
100
command
:
python3 mnist.py --batch_num
100
gpuNum
:
0
gpuNum
:
0
...
...
test/config_test/tuners/mnist-gridsearch.test.yml
View file @
cd3a912a
...
@@ -12,7 +12,7 @@ assessor:
...
@@ -12,7 +12,7 @@ assessor:
classArgs
:
classArgs
:
optimize_mode
:
maximize
optimize_mode
:
maximize
trial
:
trial
:
codeDir
:
../../../examples/trials/mnist
codeDir
:
../../../examples/trials/mnist
-tfv1
command
:
python3 mnist.py --batch_num
100
command
:
python3 mnist.py --batch_num
100
gpuNum
:
0
gpuNum
:
0
...
...
test/config_test/tuners/mnist-metis.test.yml
View file @
cd3a912a
...
@@ -14,7 +14,7 @@ assessor:
...
@@ -14,7 +14,7 @@ assessor:
classArgs
:
classArgs
:
optimize_mode
:
maximize
optimize_mode
:
maximize
trial
:
trial
:
codeDir
:
../../../examples/trials/mnist
codeDir
:
../../../examples/trials/mnist
-tfv1
command
:
python3 mnist.py --batch_num
100
command
:
python3 mnist.py --batch_num
100
gpuNum
:
0
gpuNum
:
0
...
...
test/generate_ts_config.py
View file @
cd3a912a
# Copyright (c) Microsoft Corporation
# Copyright (c) Microsoft Corporation.
# All rights reserved.
# Licensed under the MIT license.
#
# MIT License
#
# Permission is hereby granted, free of charge,
# to any person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and
# to permit persons to whom the Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
# BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
import
sys
import
sys
import
glob
import
glob
...
...
test/metrics_test.py
View file @
cd3a912a
# Copyright (c) Microsoft Corporation
# Copyright (c) Microsoft Corporation.
# All rights reserved.
# Licensed under the MIT license.
#
# MIT License
#
# Permission is hereby granted, free of charge,
# to any person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and
# to permit persons to whom the Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
# BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
import
sys
import
sys
import
os.path
as
osp
import
os.path
as
osp
...
...
test/metrics_test/trial.py
View file @
cd3a912a
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import
time
import
time
import
nni
import
nni
...
...
test/naive_test.py
View file @
cd3a912a
# Copyright (c) Microsoft Corporation
# Copyright (c) Microsoft Corporation.
# All rights reserved.
# Licensed under the MIT license.
#
# MIT License
#
# Permission is hereby granted, free of charge,
# to any person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and
# to permit persons to whom the Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
# BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
import
sys
import
sys
import
os.path
as
osp
import
os.path
as
osp
...
...
test/naive_test/naive_assessor.py
View file @
cd3a912a
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import
logging
import
logging
import
os
import
os
...
...
test/naive_test/naive_trial.py
View file @
cd3a912a
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import
time
import
time
import
nni
import
nni
...
...
test/naive_test/naive_tuner.py
View file @
cd3a912a
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import
json
import
json
import
logging
import
logging
import
os
import
os
...
...
test/pipelines-it-kubeflow.yml
View file @
cd3a912a
# Copyright (c) Microsoft Corporation
# Copyright (c) Microsoft Corporation.
# All rights reserved.
# Licensed under the MIT license.
#
# MIT License
#
# Permission is hereby granted, free of charge,
# to any person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and
# to permit persons to whom the Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
# BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
jobs
:
jobs
:
-
job
:
'
integration_test_kubeflow'
-
job
:
'
integration_test_kubeflow'
...
...
test/pipelines-it-pai.yml
View file @
cd3a912a
# Copyright (c) Microsoft Corporation
# Copyright (c) Microsoft Corporation.
# All rights reserved.
# Licensed under the MIT license.
#
# MIT License
#
# Permission is hereby granted, free of charge,
# to any person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and
# to permit persons to whom the Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
# BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
jobs
:
jobs
:
-
job
:
'
integration_test_pai'
-
job
:
'
integration_test_pai'
...
...
test/remote_docker.py
View file @
cd3a912a
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import
os
import
os
import
argparse
import
argparse
from
subprocess
import
check_output
,
check_call
from
subprocess
import
check_output
,
check_call
...
...
test/tuner_test.py
View file @
cd3a912a
# Copyright (c) Microsoft Corporation
# Copyright (c) Microsoft Corporation.
# All rights reserved.
# Licensed under the MIT license.
#
# MIT License
#
# Permission is hereby granted, free of charge,
# to any person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and
# to permit persons to whom the Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
# BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
import
sys
import
sys
import
os.path
as
osp
import
os.path
as
osp
...
...
Prev
1
…
13
14
15
16
17
18
19
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