How to iterate over input tensor in tensorrt.

Hi All,
I am writing tensorrt network in c++ and I have an input like :

ITensor* inputTensor= network->addInput( "input", DataType::kFLOAT, Dims4{24, 2, 28, 28});

Where the value for 0th dimension is 24 and it’s not the batch axis. How can I iterator over the inputTensor to get 24 different ITensors with each having dimensions Dims3{2, 28, 28}.

I know in Tensorrt 7.0 we have ILoop::addIterator which we can use to get 24 Itensors. Is there any other solution apart from using ILoop ? Any kind suggestions are appreciated.

Thank you!

Could you please let us know if you are still facing this issue?