How to make IResizeLayer work with dynamic batch size

TensorRT version

    auto layer = net->addResize(*in);

To work with dynamic batch size, the first dimension of outShape is set -1. Then, TensorRT complains “…/builder/cudnnBuilderGraph.cpp (780) - Assertion Error in checkDimsSanity: 0 (dims.d[i] >= 0)”.

So, how can I make IResizeLayer works with dynamic batch size? Or this is not supported?


Hi @uni19,
Looks like your query has already been answered here.