OrtSessionOptionsAppendExecutionProvider_Tensorrt method
OrtStatusPtr
OrtSessionOptionsAppendExecutionProvider_Tensorrt(
- Pointer<
OrtSessionOptions> options, - int device_id
This is the old way to add the TensorRT provider to the session, please use SessionOptionsAppendExecutionProvider_TensorRT_V2 above to access the latest functionality This function always exists, but will only succeed if Onnxruntime was built with TensorRT support and the TensorRT provider shared library exists
\param device_id CUDA device id, starts from zero.
Implementation
OrtStatusPtr OrtSessionOptionsAppendExecutionProvider_Tensorrt(
ffi.Pointer<OrtSessionOptions> options,
int device_id,
) {
return _OrtSessionOptionsAppendExecutionProvider_Tensorrt(
options,
device_id,
);
}