From da12e241c79933cf60b272c11d6baad58ad89408 Mon Sep 17 00:00:00 2001 From: kevinsouthByteDance Date: Mon, 19 Aug 2024 06:43:36 +0000 Subject: [PATCH] [micro_perf] fix the qps to 1e6 --- byte_micro_perf/backends/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/byte_micro_perf/backends/utils.py b/byte_micro_perf/backends/utils.py index 97793753..ab36d0aa 100644 --- a/byte_micro_perf/backends/utils.py +++ b/byte_micro_perf/backends/utils.py @@ -174,7 +174,7 @@ def dump_computation_ops_report( batch_size, total_io_amount, read_io_amount, write_io_amount = get_io_amount(op_name, input_shapes, dtype) if error == "": - qps = round(1000 / latency * batch_size, 2) * 1000 + qps = round(1e6 / latency * batch_size, 2) algo_bw = total_io_amount / latency / 1e3 bandwidth_utils = None