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
torch-spline-conv
Commits
7e5277b1
Commit
7e5277b1
authored
Mar 25, 2018
by
rusty1s
Browse files
typo
parent
c78c4cd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
torch_spline_conv/functions/degree.py
torch_spline_conv/functions/degree.py
+2
-2
No files found.
torch_spline_conv/functions/degree.py
View file @
7e5277b1
import
torch
import
torch
def
node_degree
(
edge_index
,
n
,
out
=
None
):
def
node_degree
(
edge_index
,
n
um_nodes
,
out
=
None
):
zero
=
torch
.
zeros
(
n
,
out
=
out
)
zero
=
torch
.
zeros
(
n
um_nodes
,
out
=
out
)
one
=
torch
.
ones
(
edge_index
.
size
(
1
),
out
=
zero
.
new
())
one
=
torch
.
ones
(
edge_index
.
size
(
1
),
out
=
zero
.
new
())
return
zero
.
scatter_add_
(
0
,
edge_index
[
0
],
one
)
return
zero
.
scatter_add_
(
0
,
edge_index
[
0
],
one
)
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