SessionOptionsAppendExecutionProvider_TensorRT_V2 property
\brief Append TensorRT execution provider to the session options
If TensorRT is not available (due to a non TensorRT enabled build), this function will return failure.
This is slightly different from OrtApi::SessionOptionsAppendExecutionProvider_TensorRT, it takes an ::OrtTensorRTProviderOptions which is publicly defined. This takes an opaque ::OrtTensorRTProviderOptionsV2 which must be created with OrtApi::CreateTensorRTProviderOptions.
For OrtApi::SessionOptionsAppendExecutionProvider_TensorRT, the user needs to instantiate ::OrtTensorRTProviderOptions as well as allocate/release buffers for some members of ::OrtTensorRTProviderOptions. Here, OrtApi::CreateTensorRTProviderOptions and Ortapi::ReleaseTensorRTProviderOptions will do the memory management for you.
\paramin options
\paramin tensorrt_options
\snippet{doc} snippets.dox OrtStatus Return Value
Implementation
external ffi.Pointer<
ffi.NativeFunction<
OrtStatusPtr Function(
ffi.Pointer<OrtSessionOptions> options,
ffi.Pointer<OrtTensorRTProviderOptionsV2> tensorrt_options,
)
>
>
SessionOptionsAppendExecutionProvider_TensorRT_V2;