Fix config_jobs

This commit is contained in:
hroff-1902 2020-03-03 01:00:24 +03:00 committed by GitHub
parent 0e4862b0c8
commit 92425642da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -558,10 +558,6 @@ class Hyperopt:
cpus = cpu_count()
logger.info(f"Found {cpus} CPU cores. Let's make them scream!")
config_jobs = self.config.get('hyperopt_jobs', -1)
if (config_jobs < 0 and (cpus + config_jobs + 1) > self.total_epochs) \
or (config_jobs > 0 and config_jobs > self.total_epochs):
config_jobs = self.total_epochs
logger.info("Job count invalid will correct")
logger.info(f'Number of parallel jobs set as: {config_jobs}')
self.dimensions: List[Dimension] = self.hyperopt_space()