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
beae2212
Commit
beae2212
authored
Oct 21, 2015
by
Davis King
Browse files
Added missing const
parent
beee4953
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
dlib/dnn/gpu_data.cpp
dlib/dnn/gpu_data.cpp
+1
-1
dlib/dnn/gpu_data.h
dlib/dnn/gpu_data.h
+2
-2
No files found.
dlib/dnn/gpu_data.cpp
View file @
beae2212
...
@@ -56,7 +56,7 @@ namespace dlib
...
@@ -56,7 +56,7 @@ namespace dlib
}
}
void
gpu_data
::
void
gpu_data
::
async_copy_to_device
()
async_copy_to_device
()
const
{
{
if
(
!
device_current
)
if
(
!
device_current
)
{
{
...
...
dlib/dnn/gpu_data.h
View file @
beae2212
...
@@ -48,11 +48,11 @@ namespace dlib
...
@@ -48,11 +48,11 @@ namespace dlib
#ifdef DLIB_USE_CUDA
#ifdef DLIB_USE_CUDA
void
async_copy_to_device
();
void
async_copy_to_device
()
const
;
void
set_size
(
size_t
new_size
);
void
set_size
(
size_t
new_size
);
#else
#else
// Note that calls to host() or device() will block until any async transfers are complete.
// Note that calls to host() or device() will block until any async transfers are complete.
void
async_copy_to_device
(){}
void
async_copy_to_device
()
const
{}
void
set_size
(
size_t
new_size
)
void
set_size
(
size_t
new_size
)
{
{
...
...
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