Skip to content

Commit

Permalink
Update program.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dyning committed May 15, 2020
1 parent 28ab6a3 commit f5fb36e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ def build_export(config, main_prog, startup_prog):
func_infor = config['Architecture']['function']
model = create_module(func_infor)(params=config)
image, outputs = model(mode='export')
fetches_var = sorted([outputs[name] for name in outputs])
fetches_var_name = [name for name in fetches_var]
fetches_var_name = sorted([name for name in outputs])
fetches_var = [outputs[name] for name in fetches_var_name]
feeded_var_names = [image.name]
target_vars = fetches_var
return feeded_var_names, target_vars, fetches_var_name
Expand Down

0 comments on commit f5fb36e

Please sign in to comment.