Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
yinying-lisa-li committed Jun 27, 2024
1 parent c7a88fa commit 255e2fe
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/regression-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ jobs:
# Mention @rhysd in the commit comment
alert-comment-cc-users: '@yinying-lisa-li'
# Push and deploy GitHub pages branch automatically
auto-push: true
auto-push: true
14 changes: 13 additions & 1 deletion benchmark/python/benchmarks/regression_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,38 +14,50 @@
sparse_tensor2 = dense_tensor2.to_sparse_csr()
sparse_tensor3 = dense_tensor3.to_sparse_csr()


def test_mv_dense(benchmark):
benchmark(MVNet(), dense_tensor1, dense_vector)


def test_mm_dense(benchmark):
benchmark(MMNet(), dense_tensor1, dense_tensor2)


def test_add_dense(benchmark):
benchmark(AddNet(), dense_tensor1, dense_tensor2)


def test_mul_dense(benchmark):
benchmark(MulNet(), dense_tensor1, dense_tensor2)


def test_nop_dense(benchmark):
benchmark(SelfNet(), dense_tensor1)


def test_sddmm_dense(benchmark):
benchmark(SDDMMNet(), dense_tensor1, dense_tensor2, dense_tensor3)


def test_mv_sparse(benchmark):
benchmark(MVNet(), sparse_tensor1, dense_vector)


def test_mm_sparse(benchmark):
benchmark(MMNet(), sparse_tensor1, sparse_tensor2)


def test_add_sparse(benchmark):
benchmark(AddNet(), sparse_tensor1, sparse_tensor2)


def test_mul_sparse(benchmark):
benchmark(MulNet(), sparse_tensor1, sparse_tensor2)


def test_nop_sparse(benchmark):
benchmark(SelfNet(), sparse_tensor1)


def test_sddmm_sparse(benchmark):
benchmark(SDDMMNet(), sparse_tensor1, dense_tensor2, dense_tensor3)
benchmark(SDDMMNet(), sparse_tensor1, dense_tensor2, dense_tensor3)

0 comments on commit 255e2fe

Please sign in to comment.