mirror of
https://gitee.com/fastnlp/fastNLP.git
synced 2024-11-29 18:59:01 +08:00
Merge branch 'dev' of github.com:fastNLP/fastNLP into dev
This commit is contained in:
commit
2e3a689b29
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user