Any suggestions? or maybe an example for multiple inputs and outputs?
Environment
TensorRT Version : 7.0.0-1 GPU Type : RTX Nvidia Driver Version : CUDA Version : 11.0 CUDNN Version : Operating System + Version : Ubuntu 18.04 Python Version (if applicable) : 3.6 TensorFlow Version (if applicable) : 2.3 PyTorch Version (if applicable) : Baremetal or Container (if container which image + tag) :
Update:
I’ve tried to change
Dims3 inputDims{batchSize, dims_i.d[1], dims_i.d[2]}
to
Dims4 inputDims{batchSize, 2, dims_i.d[1], dims_i.d[2]}
I’m not sure that it’s the right way cause as I said above, I have two input tensors with the size of (55,3)
But I’m still getting this error: ERROR: Parameter check failed at: engine.cpp::resolveSlots::1092, condition: allInputDimensionsSpecified(routine
Any suggestions on how to set the “binding dimensions”?
Any example on how to use with multiple outputs and inputs?
Update:
Fixed it by setting the binding dimensions for both of my inputs, like this:
context->setBindingDimensions(0, inputDims);
context->setBindingDimensions(1, inputDims);
But I’ve tried to insert a tensor of ones in the size of both my inputs, both in Keras and in tensorRT but didn’t got the same results? any idea why it happens ?
Hi @shir,
Apologies for delayed response
Are you still facing the issue?
Can you please share the model with us, as the error shows that there might be some issue with your model.
Thanks!