Commit 9c52a524 authored by rusty1s's avatar rusty1s
Browse files

linting

parent 3c415d25
from itertools import product
import pytest
import torch
from torch_sparse.tensor import SparseTensor
from .utils import dtypes, devices
......
......@@ -397,7 +397,8 @@ class SparseTensor(object):
return mat
def to_torch_sparse_coo_tensor(self, dtype: Optional[int] = None):
def to_torch_sparse_coo_tensor(
self, dtype: Optional[int] = None) -> torch.Tensor:
row, col, value = self.coo()
index = torch.stack([row, col], dim=0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment