Skip to content

Commit 1269a59

Browse files
Yi Wangfacebook-github-bot
authored andcommitted
Update class comment of Context
Summary: Fixes facebookarchive#988 Closes facebookarchive#989 Differential Revision: D5518437 Pulled By: Yangqing fbshipit-source-id: 885e6fed2a32eed57c3b3aeb16fe65925406501c
1 parent d68c3c8 commit 1269a59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

caffe2/core/context.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ void SetCPUAllocator(CPUAllocator* alloc);
9797
* execution, return false. For example, in a CUDAContext, this function
9898
* carries out a stream synchronization and spots potential errors for
9999
* the cuda kernel calls.
100-
* - static void* New(size_t nbytes): allocates memory.
101-
* - static void Delete(void* data): deletes memory.
100+
* - static std::pair<void*, MemoryDeleter> New(size_t nbytes): allocates
101+
memory and returns a deleter.
102102
* - template <class SrcContext, class DstContext> void CopyBytes(...): does
103103
* cross context memory copy.
104104
* - template <typename T, class SrcContext, class DstContext> void Copy(...):

0 commit comments

Comments
 (0)