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

Commit

Permalink
Quick fix for NAS to pass ut (#1212)
Browse files Browse the repository at this point in the history
* fix a bug

* fix a bug
  • Loading branch information
Crysple authored and leckie-chn committed Jun 25, 2019
1 parent 8b8ff6f commit 524fbc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/nni_cmd/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,8 @@ def launch_experiment(args, experiment_config, mode, config_file_name, experimen
if not os.path.isdir(path):
os.makedirs(path)
path = tempfile.mkdtemp(dir=path)
nas_mode = experiment_config['trial'].get('nasMode')
code_dir = expand_annotations(experiment_config['trial']['codeDir'], path, nas_mode)
nas_mode = experiment_config['trial'].get('nasMode', 'classic_mode')
code_dir = expand_annotations(experiment_config['trial']['codeDir'], path, nas_mode=nas_mode)
experiment_config['trial']['codeDir'] = code_dir
search_space = generate_search_space(code_dir)
experiment_config['searchSpace'] = json.dumps(search_space)
Expand Down

0 comments on commit 524fbc1

Please sign in to comment.