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
beae2212
Commit
beae2212
authored
Oct 21, 2015
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added missing const
parent
beee4953
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
gpu_data.cpp
dlib/dnn/gpu_data.cpp
+1
-1
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
}
void
gpu_data
::
async_copy_to_device
()
async_copy_to_device
()
const
{
if
(
!
device_current
)
{
...
...
dlib/dnn/gpu_data.h
View file @
beae2212
...
...
@@ -48,11 +48,11 @@ namespace dlib
#ifdef DLIB_USE_CUDA
void
async_copy_to_device
();
void
async_copy_to_device
()
const
;
void
set_size
(
size_t
new_size
);
#else
// 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
)
{
...
...
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