Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Commit e058613

Browse files
mdrozdowski1996Pooya Davoodi
authored andcommitted
print model url (#15)
1 parent f75ac68 commit e058613

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tftrt/examples/image-classification/image_classification.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ def get_input_dims(self):
175175
def get_num_classes(self):
176176
return self.num_classes
177177

178+
def get_url(self):
179+
return self.url
180+
181+
178182
def get_netdef(model):
179183
"""
180184
Creates the dictionary NETS with model names as keys and NetDef as values.
@@ -606,6 +610,7 @@ def print_dict(input_dict, str='', scale=None):
606610
print('{}{}'.format(headline, '%.1f'%v if type(v)==float else v))
607611

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

0 commit comments

Comments
 (0)