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
f81e514d
"tests/python/git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "2857813760e2af99f374e9873274c6cdde620d39"
Unverified
Commit
f81e514d
authored
Dec 28, 2023
by
Muhammed Fatih BALIN
Committed by
GitHub
Dec 28, 2023
Browse files
[GraphBolt][Bug] Quick fix for GPU sampling case. (#6856)
parent
46a566af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
python/dgl/graphbolt/impl/fused_csc_sampling_graph.py
python/dgl/graphbolt/impl/fused_csc_sampling_graph.py
+3
-1
No files found.
python/dgl/graphbolt/impl/fused_csc_sampling_graph.py
View file @
f81e514d
...
@@ -448,7 +448,9 @@ class FusedCSCSamplingGraph(SamplingGraph):
...
@@ -448,7 +448,9 @@ class FusedCSCSamplingGraph(SamplingGraph):
homogeneous_timestamps
=
[]
homogeneous_timestamps
=
[]
for
ntype
,
ids
in
nodes
.
items
():
for
ntype
,
ids
in
nodes
.
items
():
ntype_id
=
self
.
node_type_to_id
[
ntype
]
ntype_id
=
self
.
node_type_to_id
[
ntype
]
homogeneous_nodes
.
append
(
ids
+
self
.
node_type_offset
[
ntype_id
])
homogeneous_nodes
.
append
(
ids
+
self
.
node_type_offset
[
ntype_id
].
item
()
)
if
timestamps
is
not
None
:
if
timestamps
is
not
None
:
homogeneous_timestamps
.
append
(
timestamps
[
ntype
])
homogeneous_timestamps
.
append
(
timestamps
[
ntype
])
if
timestamps
is
not
None
:
if
timestamps
is
not
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