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
f281959a
Unverified
Commit
f281959a
authored
Sep 01, 2023
by
Ramon Zhou
Committed by
GitHub
Sep 01, 2023
Browse files
[Graphbolt] Delete the expensive check (#6264)
parent
240e28a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
graphbolt/src/csc_sampling_graph.cc
graphbolt/src/csc_sampling_graph.cc
+0
-6
No files found.
graphbolt/src/csc_sampling_graph.cc
View file @
f281959a
...
...
@@ -403,12 +403,6 @@ c10::intrusive_ptr<SampledSubgraph> CSCSamplingGraph::SampleNeighbors(
probs_or_mask
.
value
().
dtype
()
==
torch
::
kFloat16
)
{
probs_or_mask
=
probs_or_mask
.
value
().
to
(
torch
::
kFloat32
);
}
TORCH_CHECK
(
((
probs_or_mask
.
value
().
max
()
<
INFINITY
)
&
(
probs_or_mask
.
value
().
min
()
>=
0
))
.
item
()
.
to
<
bool
>
(),
"Invalid probs_or_mask (contains either `inf`, `nan` or element < 0)."
);
}
if
(
layer
)
{
...
...
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