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
6a21d80b
Commit
6a21d80b
authored
Dec 01, 2015
by
Davis King
Browse files
Minor change to avoid compiler warnings
parent
10fe74c1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
dlib/dnn/cuda_dlib.h
dlib/dnn/cuda_dlib.h
+1
-1
dlib/test/dnn.cpp
dlib/test/dnn.cpp
+4
-2
No files found.
dlib/dnn/cuda_dlib.h
View file @
6a21d80b
...
@@ -137,7 +137,7 @@ namespace dlib
...
@@ -137,7 +137,7 @@ namespace dlib
#else // if DLIB_USE_CUDA NOT DEFINED
#else // if DLIB_USE_CUDA NOT DEFINED
inline
void
set_device
(
inline
void
set_device
(
int
dev
int
){}
){}
inline
int
get_device
(
inline
int
get_device
(
...
...
dlib/test/dnn.cpp
View file @
6a21d80b
...
@@ -349,10 +349,10 @@ namespace
...
@@ -349,10 +349,10 @@ namespace
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
#ifdef DLIB_USE_CUDA
void
test_more_ops
(
const
long
nr
,
const
long
nc
)
void
test_more_ops
(
const
long
nr
,
const
long
nc
)
{
{
print_spinner
();
print_spinner
();
#ifdef DLIB_USE_CUDA
// We are going to make sure that the CPU implementation of these things matches
// We are going to make sure that the CPU implementation of these things matches
// the CUDA implementation.
// the CUDA implementation.
...
@@ -422,8 +422,8 @@ namespace
...
@@ -422,8 +422,8 @@ namespace
cpu
::
threshold
(
src2
,
0.5
);
cpu
::
threshold
(
src2
,
0.5
);
DLIB_TEST
(
equal
(
mat
(
src
),
mat
(
src2
)));
DLIB_TEST
(
equal
(
mat
(
src
),
mat
(
src2
)));
#endif
}
}
#endif
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
...
@@ -439,12 +439,14 @@ namespace
...
@@ -439,12 +439,14 @@ namespace
void
perform_test
(
void
perform_test
(
)
)
{
{
#ifdef DLIB_USE_CUDA
test_more_ops
(
1
,
1
);
test_more_ops
(
1
,
1
);
test_more_ops
(
3
,
4
);
test_more_ops
(
3
,
4
);
test_more_ops
(
4
,
3
);
test_more_ops
(
4
,
3
);
test_more_ops
(
4
,
1
);
test_more_ops
(
4
,
1
);
test_more_ops
(
1
,
4
);
test_more_ops
(
1
,
4
);
test_more_ops
(
10000
,
4
);
test_more_ops
(
10000
,
4
);
#endif
test_tanh
();
test_tanh
();
test_softmax
();
test_softmax
();
test_sigmoid
();
test_sigmoid
();
...
...
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