Skip to content

Commit 0536720

Browse files
committed
fix issue BVLC#6387.
1 parent 8645207 commit 0536720

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/caffe/syncedmem.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ class SyncedMemory {
6666
void* mutable_cpu_data();
6767
void* mutable_gpu_data();
6868
enum SyncedHead { UNINITIALIZED, HEAD_AT_CPU, HEAD_AT_GPU, SYNCED };
69-
SyncedHead head() { return head_; }
70-
size_t size() { return size_; }
69+
SyncedHead head() const { return head_; }
70+
size_t size() const { return size_; }
7171

7272
#ifndef CPU_ONLY
7373
void async_gpu_push(const cudaStream_t& stream);

0 commit comments

Comments
 (0)