Merge branch 'dev' of github.com:fastNLP/fastNLP into dev

This commit is contained in:
WillQvQ 2021-12-06 17:43:20 +08:00
commit 2e3a689b29

View File

@ -148,7 +148,7 @@ class Tester(object):
self._predict_func = self._model.predict
self._predict_func_wrapper = self._model.predict
else:
if _model_contains_inner_module(model):
if _model_contains_inner_module(self._model):
self._predict_func_wrapper = self._model.forward
self._predict_func = self._model.module.forward
else: