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
add12e57
Unverified
Commit
add12e57
authored
Mar 20, 2024
by
Muhammed Fatih BALIN
Committed by
GitHub
Mar 20, 2024
Browse files
[GraphBolt] Remove unique requirement from in_subgraph. (#7222)
parent
329d718e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
python/dgl/graphbolt/impl/fused_csc_sampling_graph.py
python/dgl/graphbolt/impl/fused_csc_sampling_graph.py
+0
-4
No files found.
python/dgl/graphbolt/impl/fused_csc_sampling_graph.py
View file @
add12e57
...
...
@@ -447,10 +447,6 @@ class FusedCSCSamplingGraph(SamplingGraph):
nodes
=
self
.
_convert_to_homogeneous_nodes
(
nodes
)
# Ensure nodes is 1-D tensor.
assert
nodes
.
dim
()
==
1
,
"Nodes should be 1-D tensor."
# Ensure that there are no duplicate nodes.
assert
len
(
torch
.
unique
(
nodes
))
==
len
(
nodes
),
"Nodes cannot have duplicate values."
_in_subgraph
=
self
.
_c_csc_graph
.
in_subgraph
(
nodes
)
return
self
.
_convert_to_sampled_subgraph
(
_in_subgraph
)
...
...
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