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
12a47ebc
"git@developer.sourcefind.cn:OpenDAS/torch-sparce.git" did not exist on "2e8d89e9507d03b97a3332946add159b3a1d529b"
Commit
12a47ebc
authored
Mar 11, 2018
by
rusty1s
Browse files
typos
parent
8f006b2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
torch_spline_conv/functions/spline_conv.py
torch_spline_conv/functions/spline_conv.py
+5
-1
No files found.
torch_spline_conv/functions/spline_conv.py
View file @
12a47ebc
...
@@ -32,7 +32,9 @@ def _spline_conv(x,
...
@@ -32,7 +32,9 @@ def _spline_conv(x,
row
=
edge_index
[
0
].
unsqueeze
(
-
1
).
expand
(
e
,
m_out
)
row
=
edge_index
[
0
].
unsqueeze
(
-
1
).
expand
(
e
,
m_out
)
row
=
row
if
torch
.
is_tensor
(
x
)
else
Var
(
row
)
row
=
row
if
torch
.
is_tensor
(
x
)
else
Var
(
row
)
zero
=
x
.
new
(
n
,
m_out
)
if
torch
.
is_tensor
(
x
)
else
Var
(
x
.
data
.
new
(
n
,
m_out
))
zero
=
x
.
new
(
n
,
m_out
)
if
torch
.
is_tensor
(
x
)
else
Var
(
x
.
data
.
new
(
n
,
m_out
))
return
zero
.
fill_
(
0
).
scatter_add_
(
0
,
row
,
output
)
output
=
zero
.
fill_
(
0
).
scatter_add_
(
0
,
row
,
output
)
return
output
def
spline_conv
(
x
,
def
spline_conv
(
x
,
...
@@ -46,6 +48,8 @@ def spline_conv(x,
...
@@ -46,6 +48,8 @@ def spline_conv(x,
bias
=
None
):
bias
=
None
):
n
=
x
.
size
(
0
)
n
=
x
.
size
(
0
)
# Convolve over each node.
output
=
_spline_conv
(
x
,
edge_index
,
pseudo
,
weight
,
kernel_size
,
output
=
_spline_conv
(
x
,
edge_index
,
pseudo
,
weight
,
kernel_size
,
is_open_spline
,
degree
)
is_open_spline
,
degree
)
...
...
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