Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tftrt/examples/image-classification/image_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ def get_input_dims(self):
def get_num_classes(self):
return self.num_classes

def get_url(self):
return self.url


def get_netdef(model):
"""
Creates the dictionary NETS with model names as keys and NetDef as values.
Expand Down Expand Up @@ -606,6 +610,7 @@ def print_dict(input_dict, str='', scale=None):
print('{}{}'.format(headline, '%.1f'%v if type(v)==float else v))

print_dict(vars(args))
print("url: " + get_netdef(args.model).get_url())
print_dict(num_nodes, str='num_nodes')
print_dict(graph_sizes, str='graph_size(MB)', scale=1./(1<<20))
print_dict(times, str='time(s)')
Expand Down