Skip to content

Commit

Permalink
[JitLayer]Save property meta file to correct path (#46131) (#46195)
Browse files Browse the repository at this point in the history
  • Loading branch information
0x45f authored Sep 19, 2022
1 parent d1ce974 commit 45a3c65
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 45a3c65

Please sign in to comment.