diff --git a/python/paddle/fluid/dygraph/jit.py b/python/paddle/fluid/dygraph/jit.py index f5fe55d69f0cddc6f68feb51d360ae7c6eac3831..54a8f12769b9af22849040ef23b4c3f4931728e4 100644 --- a/python/paddle/fluid/dygraph/jit.py +++ b/python/paddle/fluid/dygraph/jit.py @@ -1090,8 +1090,9 @@ def save(layer, path, input_spec=None, **configs): 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: