How to use DGLBlock?

Neighbor sampling in graphbolt results in the list of DGLBlock
I want instead of using embedding from the final layer somehow aggregate embeddings from all layers.
So I need to find the indexes of the final layer output nodes in all blocks outputs. How can I do it? Thank you for assistance.

They are always positioned first. Say that there are N final layer output nodes, then the indices in all blocks’ outputs are always 0…N-1.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.