Error at AveragePool while converting ONNX --> TensorRT


I’m converting a OpSet = 16 ONNX file to TensorRT engine file. The origin model is from Paddle frame work (SVTR ocr model). While converting it, i encounter an error at the nearly end layer - AveragePool.


TensorRT Version: 8.5.1 GA
GPU Type: GTX 1050 Ti
Nvidia Driver Version: 440.3
CUDA Version: 10.2
CUDNN Version: 8
Operating System + Version: Ubuntu 18.04

Relevant Files

Files: (3 Files from PaddlePaddle exported model. 1 Onnx file i converted from pd using paddle2onnx.

Steps To Reproduce

Command Run: trtexec --onnx=theOnnxFile --save_engine=theOutput --verbose

Error Occur:

Details of AveragePool Layer on Netron:


We are facing this error because of the following.
TensorRT doesn’t support stride=0 for pooling.

attribute {
  name: "strides"
  ints: 3
  ints: 0
  type: INTS

Thank you.