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