csullivan commented on code in PR #15809:
URL: https://github.com/apache/tvm/pull/15809#discussion_r1339209765


##########
python/tvm/relax/vm_build.py:
##########
@@ -310,6 +310,7 @@ def foo(x: Tensor((3, 4), "float32"), y: Tensor((3, 4), 
"float32")):
     passes.append(relax.transform.RemovePurityChecking())
     passes.append(relax.transform.CallTIRRewrite())
     passes.append(relax.transform.StaticPlanBlockMemory())
+    passes.append(relax.transform.LowerAllocTensor())
 
     if 
tvm.transform.PassContext.current().config.get("relax.backend.use_cuda_graph", 
False):
         passes.append(relax.transform.RewriteCUDAGraph())

Review Comment:
   Awesome, many thanks for looking into this @Lunderberg, changing the 
ordering until the fix is in makes sense. Let's land this an #15810.



-- 
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]

Reply via email to