C++如何给用户扔一个异常
throw
throw std::invalid_argument(
"The --batch and --maxBatch flags should not be used when the input model is ONNX or when dynamic shapes "
"are provided. Please use --optShapes and --shapes to set input shapes instead.");