diff --git a/paddlespeech/cli/ssl/infer.py b/paddlespeech/cli/ssl/infer.py index a7ae8c4ac..33cdf7637 100644 --- a/paddlespeech/cli/ssl/infer.py +++ b/paddlespeech/cli/ssl/infer.py @@ -466,7 +466,8 @@ class SSLExecutor(BaseExecutor): "rtf": rtf, "device": device } - if self.last_call_params is not None and self.last_call_params != current_call_params and hasattr(self, 'model'): + if self.last_call_params is not None and self.last_call_params != current_call_params and hasattr( + self, 'model'): del self.model self.last_call_params = current_call_params