Skip to content

Commit

Permalink
Fixed processing tags in summarize_graph.py (#6726)
Browse files Browse the repository at this point in the history
  • Loading branch information
vgavrilo authored Jul 22, 2021
1 parent 6dc771c commit abc6a33
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions model-optimizer/mo/utils/summarize_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@ def summarize_graph(graph_def):
if argv.input_model and argv.saved_model_dir:
print("[ ERROR ] Both keys were provided --input_model and --input_dir. Please, provide only one of them")
sys.exit(1)
graph_def, _ = load_tf_graph_def(graph_file_name=argv.input_model, is_binary=not argv.text,
checkpoint=argv.input_checkpoint,
model_dir=argv.saved_model_dir, saved_model_tags=argv.saved_model_tags)
tags = argv.saved_model_tags.split(",")
graph_def, _, _ = load_tf_graph_def(graph_file_name=argv.input_model, is_binary=not argv.text,
checkpoint=argv.input_checkpoint,
model_dir=argv.saved_model_dir, saved_model_tags=tags)
summary = summarize_graph(graph_def)
print("{} input(s) detected:".format(len(summary['inputs'])))
for input in summary['inputs']:
Expand Down

0 comments on commit abc6a33

Please sign in to comment.