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
dlib
Commits
d059f3c1
Commit
d059f3c1
authored
Nov 20, 2015
by
Davis King
Browse files
fixed compiler errors
parent
b084076e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dlib/test/dnn.cpp
dlib/test/dnn.cpp
+2
-2
No files found.
dlib/test/dnn.cpp
View file @
d059f3c1
...
...
@@ -125,7 +125,7 @@ namespace
auto
f
=
[
&
](
float
eps
)
{
const
float
old
=
src
.
host
()[
idx
];
src
.
host
()[
idx
]
+=
eps
;
softmax
(
dest
,
src
);
tt
::
softmax
(
dest
,
src
);
float
result
=
dot
(
gradient_input
,
dest
);
src
.
host
()[
idx
]
=
old
;
return
result
;
...
...
@@ -138,7 +138,7 @@ namespace
src_grad
.
copy_size
(
src
);
src_grad
=
0
;
softmax
(
dest
,
src
);
tt
::
softmax
(
dest
,
src
);
softmax_gradient
(
src_grad
,
dest
,
gradient_input
);
auto
grad_error
=
compare_gradients
(
src_grad
,
grad_src
);
...
...
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