1
0
mirror of https://github.com/newnius/YAO-optimizer.git synced 2025-12-15 17:06:44 +00:00
This commit is contained in:
2020-05-02 18:54:52 +08:00
parent 544a0f7b6e
commit ad8df93998
2 changed files with 17 additions and 20 deletions

View File

@@ -135,7 +135,7 @@ def train_models(job):
def predict(job, seq):
if job not in models or 'model' not in models[job]:
if job not in models or 'batch_size' not in models[job]:
return -1, False
batch_size = int(models[job]['batch_size'])