pub struct ModelOptions {
pub backend: Backend,
pub gpu_device: i32,
}Expand description
Options for loading a model.
Fields§
§backend: BackendWhich backend to request. Default Backend::Auto.
gpu_device: i32GPU device registry index. 0 means auto: the first device that initializes, probing discrete GPUs before integrated.
Trait Implementations§
Source§impl Clone for ModelOptions
impl Clone for ModelOptions
Source§fn clone(&self) -> ModelOptions
fn clone(&self) -> ModelOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ModelOptions
impl Debug for ModelOptions
Source§impl Default for ModelOptions
impl Default for ModelOptions
impl Eq for ModelOptions
Source§impl PartialEq for ModelOptions
impl PartialEq for ModelOptions
impl StructuralPartialEq for ModelOptions
Auto Trait Implementations§
impl Freeze for ModelOptions
impl RefUnwindSafe for ModelOptions
impl Send for ModelOptions
impl Sync for ModelOptions
impl Unpin for ModelOptions
impl UnsafeUnpin for ModelOptions
impl UnwindSafe for ModelOptions
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