MCPcopy Index your code
hub / github.com/tensorlayer/TensorLayer / validate_arguments

Function validate_arguments

tensorlayer/cli/train.py:120–133  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

118
119
120def 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
136def main(args):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…