GAT Shape Mismatch with Sparse Matrices #6723
-
I'm using GAT with sparse matrix for the edges. The each edge has 1 attribute.
Where data is a data batch.
The shape of x is
When creating the Data object I'm sending a tensor of size [num_edges, 1] as the edge_attr, and then use the ToSparseTensor transform. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I am sorry to say, but |
Beta Was this translation helpful? Give feedback.
I am sorry to say, but
GATConv
with aSparseTensor
and edge features is currently not yet supported, see https://github.com/pyg-team/pytorch_geometric/blob/master/torch_geometric/nn/conv/gat_conv.py#L239. You have to useedge_index
format.