Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
e37c8acb
Unverified
Commit
e37c8acb
authored
Jul 26, 2023
by
wzm2256
Committed by
GitHub
Jul 26, 2023
Browse files
[Doc] Correct batch index in batch.py (#6043)
parent
c08192cb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python/dgl/batch.py
python/dgl/batch.py
+2
-2
No files found.
python/dgl/batch.py
View file @
e37c8acb
...
...
@@ -21,8 +21,8 @@ def batch(graphs, ndata=ALL, edata=ALL):
graphs[0] graphs[1] ... graphs[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 ~
1+
\sum_{i=0}^k N_i
New node ID 0 ~ N_0 N_0 ~ N_0+N_1
... \sum_{i=0}^{k-1} N_i ~
\sum_{i=0}^k N_i
================= ========= ================= === =========
Because of this, many of the computations on a batched graph are the same as if
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment