Skip to content
New issue

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

关于邻接矩阵的距离信息处理 #35

Open
ReedGAOOO opened this issue Sep 12, 2024 · 3 comments
Open

关于邻接矩阵的距离信息处理 #35

ReedGAOOO opened this issue Sep 12, 2024 · 3 comments

Comments

@ReedGAOOO
Copy link

我在实际项目中需要用到真实距离的邻接矩阵,不是那种仅仅包含“0”或“1”的矩阵?这里的模型似乎都不能实现这一目标?大佬对此有什么好的建议?

@buffaloiron
Copy link

buffaloiron commented Sep 12, 2024 via email

@ReedGAOOO
Copy link
Author

抱歉之前打扰了,试了一下输出SDCN中的邻接矩阵是带权重的,那应该可以解决了:
tensor(indices=tensor([[ 0, 0, 0, ..., 3024, 3024, 3024],
[ 0, 8, 20, ..., 2983, 2991, 3024]]),
values=tensor([0.0556, 0.0556, 0.0556, ..., 0.1111, 0.1111, 0.1111]),
device='cuda:0', size=(3025, 3025), nnz=29281, layout=torch.sparse_coo)

@buffaloiron
Copy link

buffaloiron commented Sep 26, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants