Unverified Commit e37c8acb authored by wzm2256's avatar wzm2256 Committed by GitHub
Browse files

[Doc] Correct batch index in batch.py (#6043)

parent c08192cb
...@@ -21,8 +21,8 @@ def batch(graphs, ndata=ALL, edata=ALL): ...@@ -21,8 +21,8 @@ def batch(graphs, ndata=ALL, edata=ALL):
graphs[0] graphs[1] ... graphs[k] graphs[0] graphs[1] ... graphs[k]
================= ========= ================= === ========= ================= ========= ================= === =========
Original node ID 0 ~ N_0 0 ~ N_1 ... 0 ~ N_k Original node ID 0 ~ N_0 0 ~ N_1 ... 0 ~ N_k
New node ID 0 ~ N_0 N_0+1 ~ N_0+N_1+1 ... 1+\sum_{i=0}^{k-1} N_i ~ New node ID 0 ~ N_0 N_0 ~ N_0+N_1 ... \sum_{i=0}^{k-1} N_i ~
1+\sum_{i=0}^k N_i \sum_{i=0}^k N_i
================= ========= ================= === ========= ================= ========= ================= === =========
Because of this, many of the computations on a batched graph are the same as if Because of this, many of the computations on a batched graph are the same as if
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment