CRNN-Pytorch2TensorRT-via-ONNX icon indicating copy to clipboard operation
CRNN-Pytorch2TensorRT-via-ONNX copied to clipboard

tensorrt run error

Open ryupaladin opened this issue 4 years ago • 2 comments

Hi, thanks for your work! I have some problems. When I ran 'pytorch2onnx.py', it worked! But I failed when running onnx2tensorort.py. [TensorRT] ERROR: (Unnamed Layer* 144) [Slice]: slice size must be positive, size = [0,0,0] [TensorRT] ERROR: (Unnamed Layer* 145) [Slice]: slice size must be positive, size = [0,0,0]

[TensorRT] ERROR: (Unnamed Layer* 316) [Slice]: slice size must be positive, size = [0,0,0] [TensorRT] ERROR: (Unnamed Layer* 317) [Slice]: slice size must be positive, size = [0,0,0]

I've tried to print shape of the output. It's shown as : the final shape:(26, 1, 37)

I've tested on different versions of pytorch: 1.2, 1.3.1 ,1.4, they all failed.

Looking forward to your reply!

ryupaladin avatar Sep 01 '20 03:09 ryupaladin

i have same problems, have you solved it ?

wnzhyee avatar Nov 18 '20 12:11 wnzhyee

i have same problems, have you solved it ? 兄弟,我认为这个是tensorrt的适配性问题,只使用onnx格式加速就行了,暂时无法解决~

ryupaladin avatar Nov 25 '20 02:11 ryupaladin