Skip to content

Commit

Permalink
[JitLayer]Save property meta file to correct path (PaddlePaddle#46131)
Browse files Browse the repository at this point in the history
  • Loading branch information
0x45f committed Sep 19, 2022
1 parent 4261ae3 commit 2145d11
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/paddle/fluid/dygraph/jit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2145d11

Please sign in to comment.