From e6d6e421958c86e8de42d7d06602d7b4f6710344 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=98=A5=E4=B9=94?= <83450930+Liyulingyue@users.noreply.github.com> Date: Wed, 6 Nov 2024 20:29:20 +0800 Subject: [PATCH] Apply suggestions from code review --- paddlespeech/cli/ssl/infer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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