srkreddy1238 commented on code in PR #15058:
URL: https://github.com/apache/tvm/pull/15058#discussion_r1352374602


##########
src/runtime/memory/memory_manager.cc:
##########
@@ -128,6 +128,7 @@ Allocator* MemoryManager::GetOrCreateAllocator(Device dev, 
AllocatorType type) {
 
   // Look for any available, else create Naive.
   if (type == AllocatorType::kAny) {
+    it = m->allocators_.find(dev);

Review Comment:
   First time the list would be empty and at line #126 we add the device key. 
Here we need to refer to the newly added entry. This happens when we just 
create an NDArray with out any executor creation.



-- 
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: commits-unsubscr...@tvm.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to