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
a79e7cf6
Commit
a79e7cf6
authored
Nov 09, 2015
by
Davis King
Browse files
fixed compile time bugs
parent
cb2f9de6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
dlib/dnn/tensor_tools.cpp
dlib/dnn/tensor_tools.cpp
+2
-1
No files found.
dlib/dnn/tensor_tools.cpp
View file @
a79e7cf6
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
#include "tensor_tools.h"
#include "tensor_tools.h"
#include "cpu_dlib.h"
#include "cpu_dlib.h"
#include "cuda_dlib.h"
namespace
dlib
{
namespace
tt
namespace
dlib
{
namespace
tt
{
{
...
@@ -55,7 +56,7 @@ namespace dlib { namespace tt
...
@@ -55,7 +56,7 @@ namespace dlib { namespace tt
{
{
DLIB_CASSERT
(
data
.
size
()
%
2
==
0
,
""
);
DLIB_CASSERT
(
data
.
size
()
%
2
==
0
,
""
);
#ifdef DLIB_USE_CUDA
#ifdef DLIB_USE_CUDA
rnd
.
fill_gaussian
(
data
);
rnd
.
fill_gaussian
(
data
,
mean
,
stddev
);
#else
#else
for
(
auto
&
x
:
data
)
for
(
auto
&
x
:
data
)
x
=
rnd
.
get_random_gaussian
()
*
stddev
+
mean
;
x
=
rnd
.
get_random_gaussian
()
*
stddev
+
mean
;
...
...
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