zhiics opened a new pull request #6322:
URL: https://github.com/apache/incubator-tvm/pull/6322


   We need to pass host_target to optimize because it is needed by memory_alloc 
   
   
https://github.com/apache/incubator-tvm/blob/4c728d532b987ae4de464597bbfccc687913ad2d/src/relay/backend/vm/compiler.cc#L991
   
   The previous unit test with static graph didn't find the bug because the 
`host_target` is only used when emitting shape funcs
   
https://github.com/apache/incubator-tvm/blob/4c728d532b987ae4de464597bbfccc687913ad2d/python/tvm/relay/transform/memory_alloc.py#L154
   
   cc @icemelon9 @jroesch 
   


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to