masahi commented on issue #6268:
URL: https://github.com/apache/incubator-tvm/issues/6268#issuecomment-673729436


   I can see why this error is happening. We need to pass the Prelude module to 
`infer_shape`, `mod` argument here 
https://github.com/apache/incubator-tvm/blob/master/python/tvm/relay/frontend/common.py#L484
   
   See below for how we pass the Prelude mod to `infer_type`. Basically we need 
a similar function, like `infer_shape_with_prelude`.
   
https://github.com/apache/incubator-tvm/blob/master/python/tvm/relay/frontend/pytorch.py#L48
   
   A PR welcome.


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