From 247f2e92d46a91f69684bb786ffdcced01ce5ebf Mon Sep 17 00:00:00 2001 From: wuzewu Date: Tue, 6 Apr 2021 14:10:07 +0800 Subject: [PATCH] Fix the problem that ModuleV1 fails to export inference model. --- paddlehub/compat/module/module_v1.py | 1 + 1 file changed, 1 insertion(+) diff --git a/paddlehub/compat/module/module_v1.py b/paddlehub/compat/module/module_v1.py index 48b19bd5..e93f13d3 100644 --- a/paddlehub/compat/module/module_v1.py +++ b/paddlehub/compat/module/module_v1.py @@ -254,6 +254,7 @@ class ModuleV1(object): ''' return self.default_signature != None + @paddle_utils.run_in_static_mode def save_inference_model(self, dirname: str, model_filename: str = None, -- GitLab