pyGAT icon indicating copy to clipboard operation
pyGAT copied to clipboard

Why batch training?

Open jiaojiaoguan opened this issue 2 years ago • 2 comments

Hello everyone:

I have a error when I run e = Wh1 + Wh2.T

03c1df1c422d9e571631705a0858377

because the dimension of e is N by N, in my graph, n is about 400000. so it takes 400000 x 40000 x 4/1024/1024/1024 GB (about 600G). I want to know whether batch size is useful.

Thanks in advance!

jiaojiaoguan avatar Sep 16 '22 03:09 jiaojiaoguan

Hello, I think it's useless, because GAT actually needs to compute the Attention of the entire graph

LQchen1 avatar Sep 21 '22 12:09 LQchen1

From my understanding batch will work, for a shallow GAT example 2 layers, a single node only gathers information from nodes 2 steps away, nodes beyond that distance have no affect.

Preston2jager avatar Feb 06 '24 10:02 Preston2jager