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

节点特征 #433

Open
Flians opened this issue Jul 27, 2023 · 2 comments
Open

节点特征 #433

Flians opened this issue Jul 27, 2023 · 2 comments

Comments

@Flians
Copy link

Flians commented Jul 27, 2023

❓ Questions & Help

你好!请问我自定义的图数据集里面,节点特征为categorical,然后我使用了one-hot编码,使用experiment(model="gin", dataset=dataset)训练时,显示如下错误:
cogdl/operators/spmm/spmm.cpp:39: at::Tensor csr_spmm(at::Tensor, at::Tensor, at::Tensor, at::Tensor): Assertion B.dtype() == torch::kFloat32 || B.dtype() == torch::kFloat16' failed.`

请问有什么解决方法吗?

@cenyk1230
Copy link
Member

可以把特征转成FloatTensor来试试

@Flians
Copy link
Author

Flians commented Jul 28, 2023

可以把特征转成FloatTensor来试试

谢谢了,准确率比较低,不知道是我自己数据的问题

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