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. Disabled by default; ignored when graph I/O is not eligible for prepared buffers.
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