-
Hi, I am interested in capturing attention weights computed during the GAT model. As a proof of concept, I extracted weights using the model outlined below. While successful on smaller datasets like Cora, this full batch approach is not feasible with larger datasets.
Any help would be appreciated, Thanks!
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I think you can still use the same procedure as in full-batch mode for this (via |
Beta Was this translation helpful? Give feedback.
I think you can still use the same procedure as in full-batch mode for this (via
out, (att_index, att_weight) = conv(x, edge_index)
). The main challenge is to map the localatt_index
to global indices afterwards. This should be achievable vian_id[att_index]
.