mbs-octoml commented on code in PR #11091:
URL: https://github.com/apache/tvm/pull/11091#discussion_r857864927
##########
src/relay/backend/aot_executor_codegen.cc:
##########
@@ -126,7 +126,14 @@ class AOTOnDemandAllocator : public
transform::DeviceAwareExprVisitor {
for (const auto& param : func_node->params) {
CreateStorage(param.get());
}
- GetStorage(func_node->body);
+ StorageInfo si = GetStorage(func_node->body);
+
+ // If the final expr could not be found it means it was let bound,
Review Comment:
I suspect if it's better to maintain the invariant GetSorage(let-bound var)
== GetStorage(let-bound value) as you visit let bindings. Pushing on this to
see how clean we can make working in ANF for future reference.
--
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]