ERROR: StatefulPartitionedCall/functional_5/lstm_1/PartitionedCall/while_loop:7: region stride in units of elements overflows

Description

Using LSTM in my network and when trying to create cuda engine with my converted onnx file:

engine.reset(createCudaEngine(onnxModelPath, batchSize));
if (!engine)
    return 1;

I’m getting this error:
ERROR: StatefulPartitionedCall/functional_5/lstm_1/PartitionedCall/while_loop:7: region stride in units of elements overflows int32_t. Region dimensions are [2147483647,(# 0 (SHAPE x1:0)),128].
INTERNAL_ERROR: Assertion failed: stride overflow
…/builder/tacticOptimizer.cpp:2402
Aborting…

ERROR: …/builder/tacticOptimizer.cpp (2402) - Assertion Error in accumulatePitch: 0 (stride overflow)
12310000000000023

Environment

TensorRT Version : 7.0.0-1
GPU Type : RTX
Nvidia Driver Version :
CUDA Version : 11.0
CUDNN Version :
Operating System + Version : Ubuntu 18.04
Python Version (if applicable) : 3.6
TensorFlow Version (if applicable) : 2.3
PyTorch Version (if applicable) :
Baremetal or Container (if container which image + tag) :

Hi @shir,
Request you to share your onnx model and the script, so that i can assist you better.

Thanks!

I met the same problem, did you solved it?

Hi, I ran into the same issue… did you manage to resolve it?