From 45a3c6566a5c19597cba70dc111c4670c0c3c6a2 Mon Sep 17 00:00:00 2001 From: WangZhen <23097963+0x45f@users.noreply.github.com> Date: Mon, 19 Sep 2022 20:00:54 +0800 Subject: [PATCH] [JitLayer]Save property meta file to correct path (#46131) (#46195) --- python/paddle/fluid/dygraph/jit.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/paddle/fluid/dygraph/jit.py b/python/paddle/fluid/dygraph/jit.py index f5fe55d69f0cd..54a8f12769b9a 100644 --- a/python/paddle/fluid/dygraph/jit.py +++ b/python/paddle/fluid/dygraph/jit.py @@ -1090,8 +1090,9 @@ def fun(inputs): ordered_vars)), filename=params_filename) # save property - property_filename = file_prefix + INFER_PROPERTY_SUFFIX - _save_property(property_filename, property_vals) + property_save_path = os.path.join(os.path.normpath(model_path), + file_prefix + INFER_PROPERTY_SUFFIX) + _save_property(property_save_path, property_vals) # NOTE(chenweihang): [ Save extra variable info ] # save_inference_model will lose some important variable information, including: