-
My error is at the criterion(out, one_hot_labels) because in the data: ############## print("train_model out.shape:", out.shape) loss = criterion(out, one_hot_labels) What can I do to fix the mismatch between the number of out and one_hot_labels
The out of this model is calculated from the node features, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You need to map self.mlp(torch.cat([x[edge_index[0], edge_index[1], edge_attr], dim=1)) |
Beta Was this translation helpful? Give feedback.
You need to map
out
to edge-level space, e.g., via