Skip to content

Commit 96114b9

Browse files
committed
round to 2 decimals median
1 parent 30c70f8 commit 96114b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/test/microbenchmark/launch_overhead.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def main(use_tensor_desc: bool, reports_dir: str = None):
108108
writer.writerow(["input_type", "median_usecs"])
109109

110110
input_type = "TensorDescriptor" if use_tensor_desc else "Tensor"
111-
writer.writerow([input_type, sorted(usecs)[len(usecs) >> 1]])
111+
writer.writerow([input_type, round(sorted(usecs)[len(usecs) >> 1], 2)])
112112

113113

114114
if __name__ == "__main__":

0 commit comments

Comments
 (0)