fix predict bug

This commit is contained in:
lilei 2021-11-06 14:31:56 +08:00 committed by GitHub
parent f7efd3fc87
commit 0120000e91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -109,8 +109,6 @@ class Trainer(object):
self.model.train()
def predict(self):
assert self.load_path is not None and self.test_data is not None
self.model.eval()
self.logger.info("***** Running testing *****")
self.logger.info(" Num instance = %d", len(self.test_data)*self.batch_size)