pub struct CudaOptions {
pub device_id: i32,
pub tf32: bool,
pub cuda_graph: bool,
}Expand description
Options used only by the built-in CUDA execution provider.
Fields§
§device_id: i32GPU ordinal, default 0.
tf32: boolAllow TF32 for CUDA FP32 operations, default true.
cuda_graph: boolCapture and replay fixed-shape models through persistent I/O bindings.
Defaults true. Requires fixed positive I/O, sequential execution and strict
GPU placement (or a compiled EPContext). Automatic placement disables it.
Independent sessions can replay concurrently on their own streams;
see TensorRtOptions::cuda_graph for capture coordination.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CudaOptions
impl RefUnwindSafe for CudaOptions
impl Send for CudaOptions
impl Sync for CudaOptions
impl Unpin for CudaOptions
impl UnsafeUnpin for CudaOptions
impl UnwindSafe for CudaOptions
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