Struct onnxruntime_sys::OrtTensorRTProviderOptions[][src]

#[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
Options for the TensorRT provider that are passed to SessionOptionsAppendExecutionProvider_TensorRT

Fields

device_id: c_inthas_user_compute_stream: c_intuser_compute_stream: *mut c_voidtrt_max_partition_iterations: c_inttrt_min_subgraph_size: c_inttrt_max_workspace_size: usizetrt_fp16_enable: c_inttrt_int8_enable: c_inttrt_int8_calibration_table_name: *const c_chartrt_int8_use_native_calibration_table: c_inttrt_dla_enable: c_inttrt_dla_core: c_inttrt_dump_subgraphs: c_inttrt_engine_cache_enable: c_inttrt_engine_cache_path: *const c_chartrt_engine_decryption_enable: c_inttrt_engine_decryption_lib_path: *const c_chartrt_force_sequential_engine_build: c_int

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.