Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
755ac5f0
Unverified
Commit
755ac5f0
authored
Aug 05, 2019
by
SparkSnail
Committed by
GitHub
Aug 05, 2019
Browse files
Merge pull request #199 from microsoft/master
merge master
parents
521ca508
f23f8a06
Changes
22
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
255 additions
and
405 deletions
+255
-405
src/webui/yarn.lock
src/webui/yarn.lock
+248
-403
tools/nni_cmd/launcher.py
tools/nni_cmd/launcher.py
+7
-2
No files found.
src/webui/yarn.lock
View file @
755ac5f0
This diff is collapsed.
Click to expand it.
tools/nni_cmd/launcher.py
View file @
755ac5f0
...
...
@@ -360,9 +360,14 @@ def launch_experiment(args, experiment_config, mode, config_file_name, experimen
module_name
=
AdvisorModuleName
.
get
(
package_name
)
if
package_name
and
module_name
:
try
:
check_call
([
sys
.
executable
,
'-c'
,
'import %s'
%
(
module_name
)],
stdout
=
PIPE
,
stderr
=
PIPE
)
stdout_full_path
,
stderr_full_path
=
get_log_path
(
config_file_name
)
with
open
(
stdout_full_path
,
'a+'
)
as
stdout_file
,
open
(
stderr_full_path
,
'a+'
)
as
stderr_file
:
check_call
([
sys
.
executable
,
'-c'
,
'import %s'
%
(
module_name
)],
stdout
=
stdout_file
,
stderr
=
stderr_file
)
except
CalledProcessError
as
e
:
print_error
(
'%s should be installed through
\'
nnictl package install --name %s
\'
'
%
(
package_name
,
package_name
))
print_error
(
'some errors happen when import package %s.'
%
(
package_name
))
print_log_content
(
config_file_name
)
if
package_name
in
PACKAGE_REQUIREMENTS
:
print_error
(
'If %s is not installed, it should be installed through
\'
nnictl package install --name %s
\'
'
%
(
package_name
,
package_name
))
exit
(
1
)
log_dir
=
experiment_config
[
'logDir'
]
if
experiment_config
.
get
(
'logDir'
)
else
None
log_level
=
experiment_config
[
'logLevel'
]
if
experiment_config
.
get
(
'logLevel'
)
else
None
...
...
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