I am also facing a similar issue during tensorrt inference.
I0723 05:07:35.746679 1 libtorch_backend.cc:805] vector::_M_range_check: __n (which is 18446744073709551615) >= this->size() (which is 3)

Any help is appreciated.