ah-cheng opened a new pull request, #11076:
URL: https://github.com/apache/tvm/pull/11076

   When I import the onnx model efficientdet_lite.onnx. There are some 
ConvTranspose operator just provide `output_shape` attributes. no `pads`. As 
shown in the picture below:
   
![image](https://user-images.githubusercontent.com/50271153/164190563-340e13a6-9623-4ac3-85be-3591a8d6fd67.png)
   Then i get a error is the
    ```
   AssertionError: Output shapes (1, 256, 256, 16) and (1, 270, 270, 16) don't 
match
   ```
   According the doc
   ```
   https://github.com/onnx/onnx/blob/main/docs/Operators.md#ConvTranspose
   total_padding[i] = stride[i] * (input_size[i] - 1) + output_padding[i] + 
((kernel_shape[i] - 1) * dilations[i] + 1) - output_shape[i]
   ```
   I updated how `total_padding` is calculated. And support  explicitly 
specified the ```output_shape```.
   
   cc: @MatthewARM  @jwfromm  @AndrewZhaoLuo  
   
   
   


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