tqchen commented on code in PR #16066:
URL: https://github.com/apache/tvm/pull/16066#discussion_r1382607364
##########
src/runtime/memory/memory_manager.cc:
##########
@@ -166,6 +167,18 @@ Allocator* MemoryManager::GetAllocator(Device dev,
AllocatorType type) {
return it->second.at(type).get();
}
+void MemoryManager::Clear() {
+ MemoryManager* m = MemoryManager::Global();
Review Comment:
We need to add a Clear interface to base Allocator, and iterate over the
allocators, to call Allocator->Clear() without removing any allocators
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]