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
dc7f15fd
Commit
dc7f15fd
authored
Feb 08, 2018
by
Jan Eric Lenssen
Browse files
minor performance
parent
25700259
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
edgewise_spline_weighting_gpu.py
edgewise_spline_weighting_gpu.py
+1
-1
No files found.
edgewise_spline_weighting_gpu.py
View file @
dc7f15fd
...
@@ -86,7 +86,7 @@ const long* index, int num_threads) {
...
@@ -86,7 +86,7 @@ const long* index, int num_threads) {
// Calculate weight gradient.
// Calculate weight gradient.
f = input[e_idx * ${M_in} + m_in_idx];
f = input[e_idx * ${M_in} + m_in_idx];
w_grad = f * b * g
rad_output[e_idx * ${M_out} + m_out_idx]
;
w_grad = f * b * g;
atomicAdd(&(grad_weight[w_idx]), w_grad);
atomicAdd(&(grad_weight[w_idx]), w_grad);
// Not so efficient either, but not avoidable.
// Not so efficient either, but not avoidable.
}
}
...
...
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