slyubomirsky commented on pull request #6219: URL: https://github.com/apache/incubator-tvm/pull/6219#issuecomment-674346394
> [Clarification Question] How are the memory allocated for tensors -- in-between primitive functions -- ? Please point me to the code if its there -- It seems I have missed that. Do you do storage_id usage optimizations such as done in graph plan memory ? There are not, to my knowledge (@MarisaKirisame wrote most of the compiler), any memory planning optimizations in the AoT prototype, though it would certainly be a good addition. I never specifically looked into the memory allocation behavior (it was an area we ignored in the prototype altogether), but I believe allocations simply happen when the NDArray constructor is called in the generated code -- I will check that. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
