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: