We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d68c3c8 commit 1269a59Copy full SHA for 1269a59
caffe2/core/context.h
@@ -97,8 +97,8 @@ void SetCPUAllocator(CPUAllocator* alloc);
97
* execution, return false. For example, in a CUDAContext, this function
98
* carries out a stream synchronization and spots potential errors for
99
* the cuda kernel calls.
100
- * - static void* New(size_t nbytes): allocates memory.
101
- * - static void Delete(void* data): deletes memory.
+ * - static std::pair<void*, MemoryDeleter> New(size_t nbytes): allocates
+ memory and returns a deleter.
102
* - template <class SrcContext, class DstContext> void CopyBytes(...): does
103
* cross context memory copy.
104
* - template <typename T, class SrcContext, class DstContext> void Copy(...):
0 commit comments