You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
got an error using tensorrt version 10.x and i solve it by adding
"const char* input_name = engine->getIOTensorName(0);
// retrieves the name of the output tensor (e.g., the detection results).
const char* output_name = engine->getIOTensorName(1);
// Set the input tensor address
// Setting these addresses ensures that TensorRT knows where to read the input data and write the output data.
// assigns memory addresses (in GPU buffers) for both input and output tensors.
// This buffer contains the preprocessed input image (in GPU memory).
context->setTensorAddress(input_name, gpu_buffers[0]);
// This buffer will store the inference results (detections).
context->setTensorAddress(output_name, gpu_buffers[1]);
"
you may check it. and thank you again
The text was updated successfully, but these errors were encountered:
got an error using tensorrt version 10.x and i solve it by adding
"const char* input_name = engine->getIOTensorName(0);
// retrieves the name of the output tensor (e.g., the detection results).
const char* output_name = engine->getIOTensorName(1);
// Set the input tensor address
// Setting these addresses ensures that TensorRT knows where to read the input data and write the output data.
// assigns memory addresses (in GPU buffers) for both input and output tensors.
// This buffer contains the preprocessed input image (in GPU memory).
context->setTensorAddress(input_name, gpu_buffers[0]);
// This buffer will store the inference results (detections).
context->setTensorAddress(output_name, gpu_buffers[1]);
"
you may check it. and thank you again
The text was updated successfully, but these errors were encountered: