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
e9162491
"...git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "83ba01a38d94466ab16ab99c0d2bd74e463561de"
Unverified
Commit
e9162491
authored
Jan 04, 2024
by
Muhammed Fatih BALIN
Committed by
GitHub
Jan 04, 2024
Browse files
[GraphBolt][CUDA] Fix pinned `edge_id` index_select (#6898)
parent
29c3b06d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
python/dgl/graphbolt/impl/fused_csc_sampling_graph.py
python/dgl/graphbolt/impl/fused_csc_sampling_graph.py
+2
-4
No files found.
python/dgl/graphbolt/impl/fused_csc_sampling_graph.py
View file @
e9162491
...
@@ -417,10 +417,8 @@ class FusedCSCSamplingGraph(SamplingGraph):
...
@@ -417,10 +417,8 @@ class FusedCSCSamplingGraph(SamplingGraph):
and
ORIGINAL_EDGE_ID
in
self
.
edge_attributes
and
ORIGINAL_EDGE_ID
in
self
.
edge_attributes
)
)
if
has_original_eids
:
if
has_original_eids
:
original_edge_ids
=
torch
.
index_select
(
original_edge_ids
=
torch
.
ops
.
graphbolt
.
index_select
(
self
.
edge_attributes
[
ORIGINAL_EDGE_ID
],
self
.
edge_attributes
[
ORIGINAL_EDGE_ID
],
original_edge_ids
dim
=
0
,
index
=
original_edge_ids
,
)
)
if
type_per_edge
is
None
:
if
type_per_edge
is
None
:
# The sampled graph is already a homogeneous graph.
# The sampled graph is already a homogeneous graph.
...
...
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