You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "AndrewZhaoLuo (via GitHub)" <gi...@apache.org> on 2023/04/17 17:35:00 UTC

[GitHub] [tvm] AndrewZhaoLuo commented on issue #14615: [Bug] cannot allocate memory symbolic tensor shape for T.Any()

AndrewZhaoLuo commented on issue #14615:
URL: https://github.com/apache/tvm/issues/14615#issuecomment-1511793932

   Hey @jikechao , @echuraev is correct in that you need the VM to support dynamic shape.
   
   His code is actually correct except instead of 
   
   `vmc = relay.vm.compile(model, target="llvm", params=params)`
   
   you should do
   
   `vmc = relay.vm.compile(irmod, target="llvm", params=params)` 
   
   The error here is `model` is the ONNX Serialized model, while the `irmod` is the TVM serialized model (in relay). Compile takes in the relay model instead of onnx model (which is what the error is).


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