Esempio n. 1
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)
Esempio n. 2
0
def _print_trials(trials):
    if trials:
        op_util.print_trials(trials)
Esempio n. 3
0
def print_trials(trials):
    if trials:
        op_util.print_trials([t.flags for t in trials])