#[repr(C)]pub struct OrtTensorRTProviderOptions {Show 18 fields
pub device_id: c_int,
pub has_user_compute_stream: c_int,
pub user_compute_stream: *mut c_void,
pub trt_max_partition_iterations: c_int,
pub trt_min_subgraph_size: c_int,
pub trt_max_workspace_size: usize,
pub trt_fp16_enable: c_int,
pub trt_int8_enable: c_int,
pub trt_int8_calibration_table_name: *const c_char,
pub trt_int8_use_native_calibration_table: c_int,
pub trt_dla_enable: c_int,
pub trt_dla_core: c_int,
pub trt_dump_subgraphs: c_int,
pub trt_engine_cache_enable: c_int,
pub trt_engine_cache_path: *const c_char,
pub trt_engine_decryption_enable: c_int,
pub trt_engine_decryption_lib_path: *const c_char,
pub trt_force_sequential_engine_build: c_int,
}
Expand description
\brief TensorRT Provider Options
\see OrtApi::SessionOptionsAppendExecutionProvider_TensorRT
Fields§
§device_id: c_int
< CUDA device id (0 = default device)
has_user_compute_stream: c_int
§user_compute_stream: *mut c_void
§trt_max_partition_iterations: c_int
§trt_min_subgraph_size: c_int
§trt_max_workspace_size: usize
§trt_fp16_enable: c_int
§trt_int8_enable: c_int
§trt_int8_calibration_table_name: *const c_char
§trt_int8_use_native_calibration_table: c_int
§trt_dla_enable: c_int
§trt_dla_core: c_int
§trt_dump_subgraphs: c_int
§trt_engine_cache_enable: c_int
§trt_engine_cache_path: *const c_char
§trt_engine_decryption_enable: c_int
§trt_engine_decryption_lib_path: *const c_char
§trt_force_sequential_engine_build: c_int
Trait Implementations§
source§impl Clone for OrtTensorRTProviderOptions
impl Clone for OrtTensorRTProviderOptions
source§fn clone(&self) -> OrtTensorRTProviderOptions
fn clone(&self) -> OrtTensorRTProviderOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OrtTensorRTProviderOptions
impl Debug for OrtTensorRTProviderOptions
impl Copy for OrtTensorRTProviderOptions
Auto Trait Implementations§
impl RefUnwindSafe for OrtTensorRTProviderOptions
impl !Send for OrtTensorRTProviderOptions
impl !Sync for OrtTensorRTProviderOptions
impl Unpin for OrtTensorRTProviderOptions
impl UnwindSafe for OrtTensorRTProviderOptions
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more