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
8c28f982
Unverified
Commit
8c28f982
authored
Mar 03, 2024
by
Muhammed Fatih BALIN
Committed by
GitHub
Mar 03, 2024
Browse files
[GraphBolt] Slight `gb.expand_indptr` improvement on CPU. (#7189)
parent
290dadb9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
graphbolt/src/expand_indptr.cc
graphbolt/src/expand_indptr.cc
+1
-1
No files found.
graphbolt/src/expand_indptr.cc
View file @
8c28f982
...
@@ -23,7 +23,7 @@ torch::Tensor ExpandIndptr(
...
@@ -23,7 +23,7 @@ torch::Tensor ExpandIndptr(
});
});
}
}
if
(
!
node_ids
.
has_value
())
{
if
(
!
node_ids
.
has_value
())
{
node_ids
=
torch
::
arange
(
indptr
.
size
(
0
)
-
1
,
indptr
.
options
().
dtype
(
dtype
)
)
;
return
torch
::
repeat_interleave
(
indptr
.
diff
(),
output_size
).
to
(
dtype
);
}
}
return
node_ids
.
value
().
to
(
dtype
).
repeat_interleave
(
return
node_ids
.
value
().
to
(
dtype
).
repeat_interleave
(
indptr
.
diff
(),
0
,
output_size
);
indptr
.
diff
(),
0
,
output_size
);
...
...
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