Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Change get_xxx_id's return type to meet API doc (#1780)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzhe-lz authored and chicm-ms committed Nov 25, 2019
1 parent 31b2b88 commit c2e77de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/sdk/pynni/nni/platform/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
6 changes: 3 additions & 3 deletions src/sdk/pynni/nni/platform/standalone.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c2e77de

Please sign in to comment.