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
e457047c
Unverified
Commit
e457047c
authored
Mar 09, 2021
by
QuanluZhang
Committed by
GitHub
Mar 09, 2021
Browse files
[retiarii] update debug info, and add license (#3438)
parent
539a7cd7
Changes
42
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
nni/retiarii/utils.py
nni/retiarii/utils.py
+3
-0
nni/tools/nnictl/launcher.py
nni/tools/nnictl/launcher.py
+2
-2
No files found.
nni/retiarii/utils.py
View file @
e457047c
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import
inspect
import
inspect
import
warnings
import
warnings
from
collections
import
defaultdict
from
collections
import
defaultdict
...
...
nni/tools/nnictl/launcher.py
View file @
e457047c
...
@@ -593,11 +593,11 @@ def create_experiment(args):
...
@@ -593,11 +593,11 @@ def create_experiment(args):
config
=
ExperimentConfig
(
**
experiment_config
)
config
=
ExperimentConfig
(
**
experiment_config
)
experiment_config
=
convert
.
to_v1_yaml
(
config
)
experiment_config
=
convert
.
to_v1_yaml
(
config
)
except
Exception
as
e
:
except
Exception
as
e
:
print_error
(
f
'Con
version from
v2 format
failed
:
{
repr
(
e
)
}
'
)
print_error
(
f
'Con
fig in v2 format validation failed, the config error in
v2 format
is
:
{
repr
(
e
)
}
'
)
try
:
try
:
validate_all_content
(
experiment_config
,
config_path
)
validate_all_content
(
experiment_config
,
config_path
)
except
Exception
as
e
:
except
Exception
as
e
:
print_error
(
f
'Config in v1 format validation failed
.
{
repr
(
e
)
}
'
)
print_error
(
f
'Config in v1 format validation failed
, the config error in v1 format is:
{
repr
(
e
)
}
'
)
exit
(
1
)
exit
(
1
)
try
:
try
:
...
...
Prev
1
2
3
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