PyTorch Geometric SAGEConv - Expected scalar type Long, but found Float? #9135
BrandenKeck
started this conversation in
General
Replies: 1 comment
-
x = torch.tensor([[1,0],[2,4],[5,7]], dtype=torch.float) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am having tremendous trouble with my torch datatypes in the torch_geometric modules. It seems that no matter what I adjust in my code, SAGEConv( ) is expecting a Long datatype and is receiving a Float datatype in one of its linear layers. I also opened this issue to Stack Overflow here: PyTorch Geometric SAGEConv - Expected scalar type Long, but found Float?
I have trying to troubleshoot using the most basic example I could come up with:
Results in:
If I print my types, I get:
Any help with this is extremely appreciated.
Beta Was this translation helpful? Give feedback.
All reactions