masahi commented on code in PR #13538:
URL: https://github.com/apache/tvm/pull/13538#discussion_r1038461355
##########
src/tir/analysis/calculate_allocated_memory.cc:
##########
@@ -87,6 +87,15 @@
TVM_REGISTER_GLOBAL("tir.analysis.calculate_allocated_bytes").set_body_typed([](
return CalculateAllocatedBytes(func);
});
+bool VerifyVTCMLimit(const PrimFunc& func, Integer limit) {
Review Comment:
Yeah I wanted to do that, but the pass variant needs `vtcm_allocated` in its
error message, while this one wants to return only true / false. Refactoring is
possible but I thought just duplicating might be cleaner in this case.
--
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]