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
apex
Commits
ac74f345
Commit
ac74f345
authored
Mar 08, 2019
by
Simon Layton
Browse files
Fix momentum in non-nesterov case
parent
6d6f0bc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
csrc/multi_tensor_sgd_kernel.cu
csrc/multi_tensor_sgd_kernel.cu
+2
-0
No files found.
csrc/multi_tensor_sgd_kernel.cu
View file @
ac74f345
...
...
@@ -104,6 +104,8 @@ struct SGDFunctor
if
(
nesterov
)
{
incoming_grads
[
ii
]
+=
momentum
*
incoming_moms
[
ii
];
}
else
{
incoming_grads
[
ii
]
=
incoming_moms
[
ii
];
}
}
...
...
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