janetsc commented on code in PR #13028:
URL: https://github.com/apache/tvm/pull/13028#discussion_r992947625
##########
src/runtime/hexagon/hexagon_device_api.cc:
##########
@@ -137,7 +166,7 @@ void* HexagonDeviceAPI::AllocWorkspace(Device dev, size_t
size, DLDataType type_
void HexagonDeviceAPI::FreeWorkspace(Device dev, void* data) {
CHECK(IsValidDevice(dev)) << "dev.device_type: " << dev.device_type;
- CHECK(mgr->count(data) != 0)
+ CHECK(runtime_hexbuffs == nullptr || runtime_hexbuffs->count(data) != 0)
Review Comment:
Add check for released_runtime_buffers if runtime_hexbuffs is nullptr
--
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]