Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
6a21d80b
Commit
6a21d80b
authored
Dec 01, 2015
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor change to avoid compiler warnings
parent
10fe74c1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
cuda_dlib.h
dlib/dnn/cuda_dlib.h
+1
-1
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