when i want to use tensorrt to accelerate my model,i meet this error.Now,i have finished the first step of converting the pytorch to ONNX ,andd this error has happened in the second step that is convert the ONNX to tensorrt.i have kooked up a lot of information ,but i can not solve the problem.
the whole error information :
[TensorRT] ERROR: Parameter check failed at: engine.cpp::enqueue::451, condition: batchSize > 0 && batchSize <= mEngine.getMaxBatchSize()