g.srcdata['h']
and edges.src['h']
are used all over the documentation and source code. however, unlike ‘u’, ‘v’, ‘e’, ‘m’ - I haven’t seen it defined https://docs.dgl.ai/api/python/function.html?highlight=src
GitHub won’t let me search the source code for ['h']
to see where it is set.
If I had to guess, ‘h’ is some hidden
tensor about how the nodes are connected like the adjacency or laplacian matrix? Perhaps something to do with in_degrees()
which is also obscure for me.
When I do g.ndata
I don’t see h
listed as a key. Is it calculated on the fly if I happen to pass a parameter to the feat
part of the forward
in GraphConv? https://docs.dgl.ai/_modules/dgl/nn/pytorch/conv/graphconv.html#GraphConv