File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 7373)
7474from paddle .fluid .framework import dygraph_only , _non_static_mode
7575from paddle .fluid .wrapped_decorator import wrap_decorator
76+ from paddle .fluid .io import save_inference_model
7677
7778
7879def create_program_from_desc (program_desc ):
@@ -1159,8 +1160,6 @@ def fun(inputs):
11591160 )
11601161
11611162 # 5. save inference model
1162- from paddle .fluid .io import save_inference_model
1163-
11641163 # construct new save_inference_model arguments
11651164 model_path = dirname
11661165 # NOTE(chenweihang): because prefix contains model and params filename,
@@ -1817,8 +1816,6 @@ def forward(self, input):
18171816 if dirname and not os .path .exists (dirname ):
18181817 os .makedirs (dirname )
18191818
1820- from paddle .fluid .io import save_inference_model
1821-
18221819 def get_feed_fetch (all_vars , partial_vars ):
18231820 if partial_vars is None :
18241821 return all_vars
You can’t perform that action at this time.
0 commit comments