Skip to content

Commit

Permalink
TVM 0.7.0 dev1
Browse files Browse the repository at this point in the history
  • Loading branch information
sjlee25 committed Aug 2, 2020
1 parent 35ab4cf commit 1679f8e
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def pushResult(self):
global result
string = '%4s %d = %7.2f ms (%6.2f ms)' % (self.dev_type.upper(), self.idx, \
self.result_time.exec_time + self.result_time.io_time, self.result_time.io_time)
if self.predict_time > 0:
if self.predict_time is not None:
string += ' | %7.2f ms' % (self.predict_time)
string += ' [%3d]\n' % (self.batch_size)
result += string
Expand Down
4 changes: 2 additions & 2 deletions Partition.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ def estimateDevTime(self, dev, batch_size):
yp_exec = [dev_perf[xp[0]].exec_time, dev_perf[xp[1]].exec_time]

intp_time = np.interp(batch_size, xp, yp_exec) * batch_size
intp_io_time = 0.
if self.with_io_time:
yp_io = [dev_perf[xp[0]].io_time, dev_perf[xp[1]].io_time]
intp_io_time = np.interp(batch_size, xp, yp_io) * batch_size
intp_time += intp_io_time

return intp_time
return intp_time + intp_io_time

def getMaxDiffDev(self):
ret_dev = None
Expand Down
Binary file added table_densenet-121
Binary file not shown.
Binary file added table_inception_v3
Binary file not shown.
Binary file added table_resnet-18
Binary file not shown.
Binary file added table_resnet-34
Binary file not shown.
Binary file added table_resnet-50
Binary file not shown.
Binary file added table_squeezenet_v1.0
Binary file not shown.
Binary file added table_squeezenet_v1.1
Binary file not shown.

0 comments on commit 1679f8e

Please sign in to comment.