(args)
| 143 | (global_steps >= args.max_steps) |
| 144 | |
| 145 | def check_early_exit_warning(args): |
| 146 | # Issue warning if early exit from epoch is configured |
| 147 | if args.max_steps < sys.maxsize: |
| 148 | logging.warning('Early training exit is set after {} global steps'.format(args.max_steps)) |
| 149 | |
| 150 | if args.max_steps_per_epoch < sys.maxsize: |
| 151 | logging.warning('Early epoch exit is set after {} global steps'.format(args.max_steps_per_epoch)) |