(args)
| 118 | |
| 119 | |
| 120 | def validate_arguments(args): |
| 121 | if args.num_pss < 1: |
| 122 | print('Value error: must have ore than one parameter servers.') |
| 123 | exit(1) |
| 124 | |
| 125 | if not GPU_IDS: |
| 126 | num_cpus = multiprocessing.cpu_count() |
| 127 | if args.cpu_trainers > num_cpus: |
| 128 | print('Value error: there are %s available CPUs but you are requiring %s.' % (num_cpus, args.cpu_trainers)) |
| 129 | exit(1) |
| 130 | |
| 131 | if not os.path.isfile(args.file): |
| 132 | print('Value error: model trainning file does not exist') |
| 133 | exit(1) |
| 134 | |
| 135 | |
| 136 | def main(args): |
no outgoing calls
no test coverage detected
searching dependent graphs…