CRNN-Pytorch2TensorRT-via-ONNX
CRNN-Pytorch2TensorRT-via-ONNX copied to clipboard
tensorrt run error
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!
i have same problems, have you solved it ?
i have same problems, have you solved it ? 兄弟,我认为这个是tensorrt的适配性问题,只使用onnx格式加速就行了,暂时无法解决~