We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Similar to #94, the output of saint_subgraph has the same problem.
import torch from torch_sparse import SparseTensor import scipy.sparse as sp dim = 2000 a = sp.rand(dim, dim, density=0.01, format='csr') a = SparseTensor.from_scipy(a).type_as(torch.FloatTensor()) node_idx = torch.randint(0, dim, (100,)) sampled_adj, _ = a.saint_subgraph(node_idx) sampled_adj.fill_diag(1) #Error
However when the node_idx is sorted, it's working fine.
node_idx, _ = torch.sort(node_idx) sampled_adj, _ = a.saint_subgraph(node_idx) sampled_adj.fill_diag(1)
The text was updated successfully, but these errors were encountered:
Thanks for reporting. I will look into it.
Sorry, something went wrong.
This issue had no activity for 6 months. It will be closed in 2 weeks unless there is some new activity. Is this issue already resolved?
No branches or pull requests
Similar to #94, the output of saint_subgraph has the same problem.
However when the node_idx is sorted, it's working fine.
The text was updated successfully, but these errors were encountered: