Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:fastNLP/fastNLP into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
WillQvQ committed Dec 6, 2021
2 parents ca6c9dd + a4f792d commit 2e3a689
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastNLP/core/tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def __init__(self, data, model, metrics, batch_size=16, num_workers=0, device=No
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:
Expand Down

0 comments on commit 2e3a689

Please sign in to comment.