make requested change
@@ -36,9 +36,8 @@ class _PerfCaseResult(object):
device_name = ['CPU', 'GPU']
return (
'{:<20s}:{}'.format(self.name,
- ' '.join([self._to_str_per_item(ts[i],
- device_name[i])
- for i in range(len(ts))])))
+ ' '.join([self._to_str_per_item(*p)
+ for p in zip(ts, device_name)])))
def __str__(self):
return self.to_str(show_gpu=True)
