From 4c57a615075fa16da5859828dae7a3c3fb2fb3e7 Mon Sep 17 00:00:00 2001 From: yinying-lisa-li Date: Wed, 26 Jun 2024 21:17:58 +0000 Subject: [PATCH] comment --- benchmark/python/utils/benchmark_utils.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/benchmark/python/utils/benchmark_utils.py b/benchmark/python/utils/benchmark_utils.py index e117824..d048c24 100644 --- a/benchmark/python/utils/benchmark_utils.py +++ b/benchmark/python/utils/benchmark_utils.py @@ -136,12 +136,14 @@ def run_benchmark( output.append( torch.sparse_csr_tensor(*sp_out, size=dense_out.shape) ) - # Check MPACT and torch eager both return sparse csr output. + # Check MPACT and torch eager both return sparse csr output + # only when torch sparse eager has been run. if output_type: assert output_type == torch.sparse_csr else: output.append(torch.from_numpy(sp_out)) - # Check MPACT and torch eager both return dense output. + # Check MPACT and torch eager both return dense output + # only when torch sparse eager has been run. if output_type: assert output_type == torch.strided invoker, f = mpact_jit_compile(torch_net, *sparse_inputs)