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
d48ad027
Unverified
Commit
d48ad027
authored
Jun 20, 2019
by
SparkSnail
Committed by
GitHub
Jun 20, 2019
Browse files
Merge pull request #184 from microsoft/master
merge master
parents
9352cc88
22993e5d
Changes
177
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
55 additions
and
60 deletions
+55
-60
test/config_test/multi_thread/search_space.json
test/config_test/multi_thread/search_space.json
+1
-1
test/config_test/tuners/search_space_batchtuner.json
test/config_test/tuners/search_space_batchtuner.json
+2
-2
test/metrics_test.py
test/metrics_test.py
+1
-1
test/metrics_test/search_space.json
test/metrics_test/search_space.json
+1
-1
test/metrics_test/trial.py
test/metrics_test/trial.py
+1
-1
test/naive_test/README.md
test/naive_test/README.md
+1
-1
test/remote_docker.py
test/remote_docker.py
+1
-1
test/unittest.ps1
test/unittest.ps1
+1
-1
tools/README.md
tools/README.md
+6
-6
tools/nni_annotation/README.md
tools/nni_annotation/README.md
+3
-3
tools/nni_annotation/__init__.py
tools/nni_annotation/__init__.py
+3
-3
tools/nni_annotation/code_generator.py
tools/nni_annotation/code_generator.py
+1
-1
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
+14
-14
tools/nni_cmd/config_schema.py
tools/nni_cmd/config_schema.py
+2
-2
tools/nni_cmd/config_utils.py
tools/nni_cmd/config_utils.py
+4
-4
tools/nni_cmd/launcher.py
tools/nni_cmd/launcher.py
+12
-17
No files found.
test/config_test/multi_thread/search_space.json
View file @
d48ad027
test/config_test/tuners/search_space_batchtuner.json
View file @
d48ad027
test/metrics_test.py
View file @
d48ad027
test/metrics_test/search_space.json
View file @
d48ad027
test/metrics_test/trial.py
View file @
d48ad027
test/naive_test/README.md
View file @
d48ad027
test/remote_docker.py
View file @
d48ad027
test/unittest.ps1
View file @
d48ad027
tools/README.md
View file @
d48ad027
tools/nni_annotation/README.md
View file @
d48ad027
tools/nni_annotation/__init__.py
View file @
d48ad027
tools/nni_annotation/code_generator.py
View file @
d48ad027
tools/nni_annotation/testcase/annotated/mnist.py
View file @
d48ad027
tools/nni_annotation/testcase/usercode/mnist.py
View file @
d48ad027
tools/nni_cmd/config_schema.py
View file @
d48ad027
tools/nni_cmd/config_utils.py
View file @
d48ad027
tools/nni_cmd/launcher.py
View file @
d48ad027
...
...
@@ -39,6 +39,7 @@ import site
import
time
from
pathlib
import
Path
from
.command_utils
import
check_output_command
,
kill_command
from
.nnictl_utils
import
update_experiment
def
get_log_path
(
config_file_name
):
'''generate stdout and stderr log path'''
...
...
@@ -346,13 +347,6 @@ def set_experiment(experiment_config, mode, port, config_file_name):
def
launch_experiment
(
args
,
experiment_config
,
mode
,
config_file_name
,
experiment_id
=
None
):
'''follow steps to start rest server and start experiment'''
nni_config
=
Config
(
config_file_name
)
# check execution policy in powershell
if
sys
.
platform
==
'win32'
:
execution_policy
=
check_output
([
'powershell.exe'
,
'Get-ExecutionPolicy'
]).
decode
(
'ascii'
).
strip
()
if
execution_policy
==
'Restricted'
:
print_error
(
'PowerShell execution policy error, please run PowerShell as administrator with this command first:
\r\n
'
\
+
'
\'
Set-ExecutionPolicy -ExecutionPolicy Unrestricted
\'
'
)
exit
(
1
)
# check packages for tuner
package_name
,
module_name
=
None
,
None
if
experiment_config
.
get
(
'tuner'
)
and
experiment_config
[
'tuner'
].
get
(
'builtinTunerName'
):
...
...
@@ -461,7 +455,7 @@ def launch_experiment(args, experiment_config, mode, config_file_name, experimen
raise
Exception
(
ERROR_INFO
%
'Restful server stopped!'
)
exit
(
1
)
#set
kubeflow
config
#set
frameworkcontroller
config
if
experiment_config
[
'trainingServicePlatform'
]
==
'frameworkcontroller'
:
print_normal
(
'Setting frameworkcontroller config...'
)
config_result
,
err_msg
=
set_frameworkcontroller_config
(
experiment_config
,
args
.
port
,
config_file_name
)
...
...
@@ -508,6 +502,7 @@ def launch_experiment(args, experiment_config, mode, config_file_name, experimen
def
resume_experiment
(
args
):
'''resume an experiment'''
update_experiment
()
experiment_config
=
Experiments
()
experiment_dict
=
experiment_config
.
get_all_experiments
()
experiment_id
=
None
...
...
Prev
1
…
5
6
7
8
9
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