Skip to content

Commit

Permalink
Fix wrong tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
arthur-flam committed Aug 21, 2020
1 parent 99f3fc3 commit f3540c8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions qaboard/qa.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,11 @@ def batch(ctx, batches, batches_files, tuning_search_dict, tuning_search_file, n
if forwarded_args:
run_forwarded_args = [a for a in forwarded_args if not a in ("--keep-previous", "--no-postprocess", "--save-manifests-in-database")]
if run_forwarded_args:
run_context.extra_parameters["forwarded_args"] = run_forwarded_args
run_context.extra_parameters.update(tuning_params)
run_context.extra_parameters = {"forwarded_args": run_forwarded_args, **tuning_params}
else:
run_context.extra_parameters = tuning_params
else:
run_context.extra_parameters = tuning_params

if list_output_dirs:
print(run_context.output_dir)
Expand Down

0 comments on commit f3540c8

Please sign in to comment.