-
Hey everyone, I have been using a modified
I've looked through the Everything else I need for the Any ideas how to get this to work with a model that's expecting to do this: pro_x, pro_edge_index, pro_batch = pro_data.x, pro_data.edge_index, pro_data.batch
x = self.pro_conv(pro_x, pro_edge_index)
# The issue is here ^ , where pro_x is `None`
x = ....
...
return out Thanks in advance for anyone's help! Really appreciate it |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
We keep attributes separate by design (e.g. you may wish to do different things to them, such as treating coordintates in a more principled way in an EGNN). So, what you can do to solve your problem is simply concatenate the features you want def forward(batch: Batch):
x = torch.cat([batch.amino_acid_one_hot, batch.some_other_feature], dim=1)
x = self.conv(x, batch.edge_index) If you want to do this faster (and are using pytorch lightning modules), you can do the pre-processing in |
Beta Was this translation helpful? Give feedback.
We keep attributes separate by design (e.g. you may wish to do different things to them, such as treating coordintates in a more principled way in an EGNN).
So, what you can do to solve your problem is simply concatenate the features you want
If you want to do this faster (and are using pytorch lightning modules), you can do the pre-processing in
on_after_batch_transfer