Merge pull request #853 from Jackwaterveg/fix_bug

Fix bug of parallel using condition
pull/855/head
Hui Zhang 3 years ago committed by GitHub
commit 4d1ce107af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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