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
c2e77ded
Commit
c2e77ded
authored
Nov 25, 2019
by
liuzhe-lz
Committed by
chicm-ms
Nov 25, 2019
Browse files
Change get_xxx_id's return type to meet API doc (#1780)
parent
31b2b886
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/sdk/pynni/nni/platform/local.py
src/sdk/pynni/nni/platform/local.py
+1
-1
src/sdk/pynni/nni/platform/standalone.py
src/sdk/pynni/nni/platform/standalone.py
+3
-3
No files found.
src/sdk/pynni/nni/platform/local.py
View file @
c2e77ded
...
...
@@ -101,4 +101,4 @@ def get_trial_id():
return
trial_env_vars
.
NNI_TRIAL_JOB_ID
def
get_sequence_id
():
return
trial_env_vars
.
NNI_TRIAL_SEQ_ID
return
int
(
trial_env_vars
.
NNI_TRIAL_SEQ_ID
)
src/sdk/pynni/nni/platform/standalone.py
View file @
c2e77ded
...
...
@@ -44,13 +44,13 @@ def get_next_parameter():
}
def
get_experiment_id
():
pass
return
'STANDALONE'
def
get_trial_id
():
pass
return
'STANDALONE'
def
get_sequence_id
():
pass
return
0
def
send_metric
(
string
):
metric
=
json_tricks
.
loads
(
string
)
...
...
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