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
cf245f4f
Commit
cf245f4f
authored
Mar 11, 2018
by
rusty1s
Browse files
comment
parent
ab832e02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
torch_spline_conv/functions/utils.py
torch_spline_conv/functions/utils.py
+1
-0
No files found.
torch_spline_conv/functions/utils.py
View file @
cf245f4f
...
@@ -37,6 +37,7 @@ def spline_weighting_forward(x, weight, basis, weight_index):
...
@@ -37,6 +37,7 @@ def spline_weighting_forward(x, weight, basis, weight_index):
def
spline_weighting_backward
(
grad_output
,
x
,
weight
,
basis
,
weight_index
):
def
spline_weighting_backward
(
grad_output
,
x
,
weight
,
basis
,
weight_index
):
grad_input
=
x
.
new
(
x
.
size
(
0
),
weight
.
size
(
1
))
grad_input
=
x
.
new
(
x
.
size
(
0
),
weight
.
size
(
1
))
# grad_weight computation via `atomic_add` => Initialize with zeros.
grad_weight
=
x
.
new
(
weight
.
size
()).
fill_
(
0
)
grad_weight
=
x
.
new
(
weight
.
size
()).
fill_
(
0
)
func
=
get_func
(
'weighting_backward'
,
x
)
func
=
get_func
(
'weighting_backward'
,
x
)
func
(
grad_input
,
grad_weight
,
grad_output
,
x
,
weight
,
basis
,
weight_index
)
func
(
grad_input
,
grad_weight
,
grad_output
,
x
,
weight
,
basis
,
weight_index
)
...
...
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