Skip to content

Commit

Permalink
[3] lint error resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
ANSHUMAN TRIPATHY authored and ANSHUMAN TRIPATHY committed Nov 9, 2020
1 parent bb733b4 commit 06f9911
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions python/tvm/relay/op/nn/nn.py
Original file line number Diff line number Diff line change
Expand Up @@ -1993,6 +1993,7 @@ def batch_matmul(x, y):
return _make.batch_matmul(x, y)


# pylint: disable=no-else-return,inconsistent-return-statements
def sparse_dense(data, weight, sparse_data=False):
r"""
Computes the matrix multiplication of `data` and `weight`, where `data` is
Expand Down
5 changes: 3 additions & 2 deletions python/tvm/topi/nn/sparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def sparse_dense_v1(data_data, data_indices, data_indptr, weight):
return func(data_data, data_indices, data_indptr, weight)


# pylint: disable=no-else-return,inconsistent-return-statements
def sparse_dense(input_1, input_2, input_3, input_4, sparse_data=False):
"""
Computes sparse-dense matrix multiplication of `data` and
Expand Down Expand Up @@ -181,8 +182,8 @@ def f(i, row):


def _sparse_dense_bsrmm_v1(data_data, data_indices, data_indptr, weight):
(k, m) = get_const_tuple(weight.shape)
(l, bs_r, bs_c) = get_const_tuple(data_data.shape)
(k, _) = get_const_tuple(weight.shape)
(_, bs_r, bs_c) = get_const_tuple(data_data.shape)
(num_blocks_plus_1,) = get_const_tuple(data_indptr.shape)
num_blocks = num_blocks_plus_1 - 1

Expand Down

0 comments on commit 06f9911

Please sign in to comment.