You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/04/25 17:34:34 UTC

[GitHub] [tvm] mbs-octoml commented on a diff in pull request #11091: [AOT] Enable A-Normal Form in the AOT executor

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

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