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
b9fd9564
Commit
b9fd9564
authored
Apr 18, 2016
by
Davis King
Browse files
Added missing assert
parent
3b35f55b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
dlib/dnn/cuda_dlib.h
dlib/dnn/cuda_dlib.h
+5
-2
No files found.
dlib/dnn/cuda_dlib.h
View file @
b9fd9564
...
...
@@ -162,8 +162,11 @@ namespace dlib
#else // if DLIB_USE_CUDA NOT DEFINED
inline
void
set_device
(
int
){}
int
id
)
{
DLIB_CASSERT
(
id
==
0
,
"dlib::cuda::set_device(id) called with an invalid device id."
);
}
inline
int
get_device
(
){
return
0
;
}
...
...
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