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
4b92ba74
".github/vscode:/vscode.git/clone" did not exist on "f9ee2308ad40d207e24faa70d9737f3d52425ccf"
Commit
4b92ba74
authored
Feb 13, 2018
by
rusty1s
Browse files
lots of bug fixes
parent
dc7f15fd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
edgewise_spline_weighting.py
edgewise_spline_weighting.py
+2
-1
spline_conv.py
spline_conv.py
+3
-0
No files found.
edgewise_spline_weighting.py
View file @
4b92ba74
...
@@ -8,6 +8,7 @@ def edgewise_spline_weighting(input, weight, amount, index):
...
@@ -8,6 +8,7 @@ def edgewise_spline_weighting(input, weight, amount, index):
if
input
.
is_cuda
:
if
input
.
is_cuda
:
K
,
M_in
,
M_out
=
weight
.
size
()
K
,
M_in
,
M_out
=
weight
.
size
()
k_max
=
amount
.
size
(
1
)
k_max
=
amount
.
size
(
1
)
return
EdgewiseSplineWeightingGPU
(
amount
,
index
,
K
,
M_in
,
M_out
,
k_max
)(
input
,
weight
)
return
EdgewiseSplineWeightingGPU
(
amount
,
index
,
K
,
M_in
,
M_out
,
k_max
)(
input
,
weight
)
else
:
else
:
raise
NotImplementedError
raise
NotImplementedError
spline_conv.py
View file @
4b92ba74
...
@@ -16,6 +16,9 @@ def spline_conv(
...
@@ -16,6 +16,9 @@ def spline_conv(
degree
=
1
,
degree
=
1
,
bias
=
None
):
bias
=
None
):
if
input
.
dim
()
==
1
:
input
=
input
.
unsqueeze
(
1
)
values
=
adj
.
_values
()
values
=
adj
.
_values
()
row
,
col
=
adj
.
_indices
()
row
,
col
=
adj
.
_indices
()
...
...
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