Skip to content

Commit

Permalink
fix load inference model (PaddlePaddle#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
LielinJiang authored Jan 5, 2021
1 parent f743afd commit ffb1a22
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ppgan/apps/base_predictor.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@ def build_inference_model(self):
param_file = file_name

self.program, self.feed_names, self.fetch_targets = paddle.static.load_inference_model(
dirname=self.weight_path,
self.weight_path,
executor=self.exe,
model_filename=model_file,
params_filename=param_file)
print(self.feed_names)

def base_forward(self, inputs):
if paddle.in_dynamic_mode():
Expand Down

0 comments on commit ffb1a22

Please sign in to comment.