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

Commit

Permalink
fix a bug (#1211)
Browse files Browse the repository at this point in the history
fix bug for PR #1201
  • Loading branch information
Crysple authored and leckie-chn committed Jun 25, 2019
1 parent a587648 commit 8b8ff6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/nni_cmd/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +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)
code_dir = expand_annotations(experiment_config['trial']['codeDir'], path, nas_mode=experiment_config['trial']['nasMode'])
nas_mode = experiment_config['trial'].get('nasMode')
code_dir = expand_annotations(experiment_config['trial']['codeDir'], path, 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 8b8ff6f

Please sign in to comment.