When parsing my TensorFlow model, I get the following error:
UFFParser: Parser error: Reshape: -1 dimension specified more than 1 time
This is a face detection model which includes two submodels running on top of ResNet. One submodel is for classification, and the other is for regression. After I construct each submodel (there is a reshape function included in each of them where one of the dimensions is not specified, i.e., reshape(-1, x)), I apply them to multiple feature proposal networks, hence, creating a pyramid network (if you are familiar with retinanet, it is similar). When trying to parse this pyramid network in Tensorrt, trt complains that the unknown dimension -1 has been specified more than once, which I assume happens because of the multiple pyramid levels, each with its own unknown dimension.
Anybody has ever had a similar experience? What’s a possible workaround?