-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Conversation
* Refactor dispatcher command line
def _run_advisor(args): | ||
if args.advisor_class_name in AdvisorModuleName: | ||
def _run_advisor(exp_params): | ||
if exp_params.get('advisor').get('builtinAdvisorName') in AdvisorModuleName: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If exp_params.get('advisor')
can be None, I think get
won't help. Should write exp_params['advisor']
anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here the key 'advisor' must exist, it is OK to use either exp_params['advisor']
or exp_params.get('advisor')
, just want to be consistent with other places where key may not exists.
@@ -14,7 +14,9 @@ | |||
'send_metric', | |||
] | |||
|
|||
init_standalone_logger() | |||
if trial_env_vars.NNI_PLATFORM is None: | |||
init_standalone_logger() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file is for standalone mode, trial_env_vars.NNI_PLATFORM
must be None
, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, the problem is on environment variables, NNI_PLATFORM is an env var for trial not for dispatcher, I will fix it in another PR.
Passthrough experiment settings to dispatcher, remove the unnecessary configuration parsing in nni manager.
Also fix following issue:
recognize customized tuner as builtin tuner if class name is same as one of builtin tuners.