Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
haowen-xu committed Apr 23, 2020
1 parent 5ff6c0a commit aef0688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorkit/backend/pytorch_/sparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def shape(input: Tensor) -> List[int]:


@sparse_jit
def value_count(input: Tensor) -> List[int]:
def value_count(input: Tensor) -> int:
if not input.is_coalesced():
input = input.coalesce()
return input.indices().shape[1]
Expand Down

0 comments on commit aef0688

Please sign in to comment.