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
fb2e852d
"vscode:/vscode.git/clone" did not exist on "e696cfd64ddbfe569eafe35c86e731f04271b0c0"
Commit
fb2e852d
authored
Mar 07, 2018
by
Jan Eric Lenssen
Browse files
cleanuped, bp_to_adj now set by is_tensor() of values
parent
850bb170
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spline_conv.py
spline_conv.py
+2
-2
No files found.
spline_conv.py
View file @
fb2e852d
...
@@ -16,8 +16,7 @@ def spline_conv(
...
@@ -16,8 +16,7 @@ def spline_conv(
basis_kernel
,
basis_kernel
,
basis_backward_kernel
=
None
,
basis_backward_kernel
=
None
,
degree
=
1
,
degree
=
1
,
bias
=
None
,
bias
=
None
):
bp_to_adj
=
False
):
if
input
.
dim
()
==
1
:
if
input
.
dim
()
==
1
:
input
=
input
.
unsqueeze
(
1
)
input
=
input
.
unsqueeze
(
1
)
...
@@ -28,6 +27,7 @@ def spline_conv(
...
@@ -28,6 +27,7 @@ def spline_conv(
# Get features for every end vertex with shape [|E| x M_in].
# Get features for every end vertex with shape [|E| x M_in].
output
=
input
[
col
]
output
=
input
[
col
]
bp_to_adj
=
False
if
torch
.
is_tensor
(
values
)
else
True
# Convert to [|E| x M_in] feature matrix and calculate [|E| x M_out].
# Convert to [|E| x M_in] feature matrix and calculate [|E| x M_out].
if
output
.
is_cuda
:
if
output
.
is_cuda
:
...
...
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