mbs-octoml commented on code in PR #11481:
URL: https://github.com/apache/tvm/pull/11481#discussion_r890547485
##########
src/runtime/contrib/tensorrt/tensorrt_ops.cc:
##########
@@ -67,7 +67,7 @@ nvinfer1::ITensor*
TensorRTOpConverter::Transpose(TensorRTOpConverterParams* par
// Batch dimension cannot be modified.
ICHECK_EQ(input->getDimensions().nbDims, order.size() - 1);
ICHECK_EQ(order[0], 0);
- for (size_t i = 0; i < order.size(); ++i) {
+ for (size_t i = 0; i + 1 < order.size(); ++i) {
Review Comment:
Let me try again without it, but yest this corruption bug was getting
tickled by this PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]