Open Chen-Cai-OSU opened 2 years ago
Yes, that is correct. Importantly, batches
denotes a list of contiguous node indices grouped that we want to group into one single mini-batch/subgraph, for example: [[0, 1, 2], [5, 6, 7], [10, 11, 12, 13]]
for which offset
would be [0, 5, 10]
and count
would be [3, 3, 4]
. relabel_fn
then computes the induced subgraph of these chunks of nodes, and relabels their node indices to [0, ..., 9]
.
Hi, I am trying to apply pyg_autoscale to heterogeneous graph and have to modify the compute_subgraph method in SubgraphLoader class. I was wondering would you like to elaborate on what
offset
,count
are and what isrelabel_fn
doing? My current understanding is thatcompute_subgraph
is basically taking the sub-graph spanned by n_id. Is this understanding accurate? Many thanks!