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
09e48552
Unverified
Commit
09e48552
authored
Feb 29, 2024
by
Muhammed Fatih BALIN
Committed by
GitHub
Feb 29, 2024
Browse files
[GraphBolt] `to_pyg_data` should return `int64` `edge_index`. (#7178)
parent
d8d87243
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/dgl/graphbolt/minibatch.py
python/dgl/graphbolt/minibatch.py
+1
-1
No files found.
python/dgl/graphbolt/minibatch.py
View file @
09e48552
...
@@ -516,7 +516,7 @@ class MiniBatch:
...
@@ -516,7 +516,7 @@ class MiniBatch:
row_nodes
=
torch
.
cat
(
row_nodes
)
row_nodes
=
torch
.
cat
(
row_nodes
)
edge_index
=
torch
.
unique
(
edge_index
=
torch
.
unique
(
torch
.
stack
((
row_nodes
,
col_nodes
)),
dim
=
1
torch
.
stack
((
row_nodes
,
col_nodes
)),
dim
=
1
)
)
.
long
()
if
self
.
node_features
is
None
:
if
self
.
node_features
is
None
:
node_features
=
None
node_features
=
None
...
...
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