Exemple #1
0
def save_trials(trials, path):
    if not trials:
        cli.out("Nothing to save")
        return
    trials = [t.flags for t in trials]
    cli.out("Saving %i trial(s) to %s" % (len(trials), path))
    op_util.save_trials(trials, _save_trials_path(path))
Exemple #2
0
def _print_or_save_one_trial(op, args):
    flag_vals = op.opdef.flag_values(include_none=True)
    if args.print_trials:
        op_util.print_trials([flag_vals])
    else:
        assert args.save_trials
        cli.out("Saving 1 trial to %s" % args.save_trials)
        op_util.save_trials([flag_vals], args.save_trials)
Exemple #3
0
def _save_trials(trials, path):
    op_util.save_trials(trials, path)