coffezhou commented on issue #18132:
URL: https://github.com/apache/tvm/issues/18132#issuecomment-3066715401

   > The error occurs because the `expand_shape` parameter you passed to the 
main function is `tvm.nd.array([1, 1, 4, 4])`, but TVM's _**Exapnd**_ node 
requires that the `expand_shape` passed in is the size of the target tensor. 
Therefore, `tvm.nd.array([1, 3, 4, 4])` should be passed in here:
   > 
   > if params:
   >     input_list += params["main"]
   >     input_list[-1] = tvm.nd.array([1, 3, 4, 4])
   
   Thanks! This issue could be resolved by adding the code "input_list[-1] = 
tvm.nd.array([1, 3, 4, 4])".
   However, according to the[ onnx specification of 
Expand](https://onnx.ai/onnx/operators/onnx__Expand.html), the Expand operator 
supports the broadcast rule. The Expand operator in TVM is not compatible with 
that of onnx. Maybe some documents of this should be added.


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