Skip to content

IExecutionContext::enqueueV3: Error #6

@Neoyning

Description

@Neoyning

I run the code for TensoRT 10 with few change in

// Retrieve input dimensions from the engine ICudaEngine::getNbIOTensors()
  //  input_h = engine->getBindingDimensions(0).d[2];
  //  input_w = engine->getBindingDimensions(0).d[3];

  // https://docs.nvidia.com/deeplearning/tensorrt/migration-guide/index.html
  auto input_dims = engine->getTensorShape(engine->getIOTensorName(0));
  input_h = input_dims.d[2];
  input_w = input_dims.d[3];
  // Retrieve detection attributes and number of detections
  //  detection_attribute_size = engine->getBindingDimensions(1).d[1];
  //  num_detections = engine->getBindingDimensions(1).d[2];

  auto input_dims1 = engine->getTensorShape(engine->getIOTensorName(1));
  detection_attribute_size = input_dims1.d[1];
  num_detections = input_dims1.d[2];

However, The code can not provide result with following error

/home/neoy/vs_workspace/git_project/build/thirdparty/Yolo-V11-cpp-TensorRT/YOLOv11TRT infer_image /home/neoy/vs_workspace/git_project/thirdparty/tensorrt-cpp-api/inputs/team.jpg /home/neoy/vs_workspace/git_project/torch_assets/yolo11n.engine...

IExecutionContext::enqueueV3: Error Code 3: API Usage Error (Parameter check failed, condition: mContext.profileObliviousBindings.at(profileObliviousIndex) != nullptr. Address is not set for input tensor images. Call setInputTensorAddress or setTensorAddress before enqueue/execute.)
IExecutionContext::enqueueV3: Error Code 3: API Usage Error (Parameter check failed, condition: mContext.profileObliviousBindings.at(profileObliviousIndex) != nullptr. Address is not set for input tensor images. Call setInputTensorAddress or setTensorAddress before enqueue/execute.)
IExecutionContext::enqueueV3: Error Code 3: API Usage Error (Parameter check failed, condition: mContext.profileObliviousBindings.at(profileObliviousIndex) != nullptr. Address is not set for input tensor images. Call setInputTensorAddress or setTensorAddress before enqueue/execute.)
IExecutionContext::enqueueV3: Error Code 3: API Usage Error (Parameter check failed, condition: mContext.profileObliviousBindings.at(profileObliviousIndex) != nullptr. Address is not set for input tensor images. Call setInputTensorAddress or setTensorAddress before enqueue/execute.)
IExecutionContext::enqueueV3: Error Code 3: API Usage Error (Parameter check failed, condition: mContext.profileObliviousBindings.at(profileObliviousIndex) != nullptr. Address is not set for input tensor images. Call setInputTensorAddress or setTensorAddress before enqueue/execute.)
IExecutionContext::enqueueV3: Error Code 3: API Usage Error (Parameter check failed, condition: mContext.profileObliviousBindings.at(profileObliviousIndex) != nullptr. Address is not set for input tensor images. Call setInputTensorAddress or setTensorAddress before enqueue/execute.)
IExecutionContext::enqueueV3: Error Code 3: API Usage Error (Parameter check failed, condition: mContext.profileObliviousBindings.at(profileObliviousIndex) != nullptr. Address is not set for input tensor images. Call setInputTensorAddress or setTensorAddress before enqueue/execute.)
IExecutionContext::enqueueV3: Error Code 3: API Usage Error (Parameter check failed, condition: mContext.profileObliviousBindings.at(profileObliviousIndex) != nullptr. Address is not set for input tensor images. Call setInputTensorAddress or setTensorAddress before enqueue/execute.)
IExecutionContext::enqueueV3: Error Code 3: API Usage Error (Parameter check failed, condition: mContext.profileObliviousBindings.at(profileObliviousIndex) != nullptr. Address is not set for input tensor images. Call setInputTensorAddress or setTensorAddress before enqueue/execute.)
IExecutionContext::enqueueV3: Error Code 3: API Usage Error (Parameter check failed, condition: mContext.profileObliviousBindings.at(profileObliviousIndex) != nullptr. Address is not set for input tensor images. Call setInputTensorAddress or setTensorAddress before enqueue/execute.)
model warmup 10 times
IExecutionContext::enqueueV3: Error Code 3: API Usage Error (Parameter check failed, condition: mContext.profileObliviousBindings.at(profileObliviousIndex) != nullptr. Address is not set for input tensor images. Call setInputTensorAddress or setTensorAddress before enqueue/execute.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions