fix the bug of parallel using condition

pull/853/head
huangyuxin 3 years ago
parent f4e59293bf
commit 4a1d3ad9b3

@ -139,7 +139,7 @@ class Trainer():
"""A flag indicating whether the experiment should run with
multiprocessing.
"""
return self.args.nprocs > 0
return self.args.nprocs > 1
def init_parallel(self):
"""Init environment for multiprocess training.

Loading…
Cancel
Save