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
c16689ca
Commit
c16689ca
authored
Nov 24, 2017
by
rusty1s
Browse files
beginning of max pool voxel
parent
5c165b81
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
edgewise_spline_weighting_gpu.py
edgewise_spline_weighting_gpu.py
+1
-3
edgewise_spline_weighting_gpu_test.py
edgewise_spline_weighting_gpu_test.py
+0
-1
No files found.
edgewise_spline_weighting_gpu.py
View file @
c16689ca
...
@@ -141,9 +141,8 @@ class EdgewiseSplineWeightingGPU(Function):
...
@@ -141,9 +141,8 @@ class EdgewiseSplineWeightingGPU(Function):
K
,
M_in
,
M_out
=
weight
.
size
()
K
,
M_in
,
M_out
=
weight
.
size
()
k_max
=
self
.
amount
.
size
(
1
)
k_max
=
self
.
amount
.
size
(
1
)
num_edges
=
input
.
size
(
0
)
grad_input
=
grad_output
.
new
(
num_edges
,
M_in
).
fill_
(
0
)
grad_input
=
grad_output
.
new
(
input
.
size
(
0
)
,
M_in
).
fill_
(
0
)
grad_weight
=
grad_output
.
new
(
K
,
M_in
,
M_out
).
fill_
(
0
)
grad_weight
=
grad_output
.
new
(
K
,
M_in
,
M_out
).
fill_
(
0
)
num_threads
=
grad_output
.
numel
()
num_threads
=
grad_output
.
numel
()
...
@@ -154,7 +153,6 @@ class EdgewiseSplineWeightingGPU(Function):
...
@@ -154,7 +153,6 @@ class EdgewiseSplineWeightingGPU(Function):
_edgewise_spline_weighting_backward_kernel
,
_edgewise_spline_weighting_backward_kernel
,
Dtype
=
Dtype
(
input
),
Dtype
=
Dtype
(
input
),
num_threads
=
num_threads
,
num_threads
=
num_threads
,
num_edges
=
num_edges
,
M_in
=
M_in
,
M_in
=
M_in
,
M_out
=
M_out
,
M_out
=
M_out
,
k_max
=
k_max
,
k_max
=
k_max
,
...
...
edgewise_spline_weighting_gpu_test.py
View file @
c16689ca
import
unittest
import
unittest
import
torch
import
torch
from
torch.autograd
import
Variable
,
gradcheck
from
torch.autograd
import
Variable
,
gradcheck
from
numpy.testing
import
assert_equal
from
numpy.testing
import
assert_equal
...
...
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