pub struct GpuDeviceSelection {
pub raw_cli_value: String,
pub requested_gpu_devices: Vec<usize>,
pub selected_gpu_devices: Vec<usize>,
pub cuda_device_count: usize,
pub selected_distributed_strategy: String,
pub selected_layer_split_plan: Option<String>,
pub selected_layer_split_stages: Option<Vec<CudaLayerSplitStage>>,
}Fields§
§raw_cli_value: String§requested_gpu_devices: Vec<usize>§selected_gpu_devices: Vec<usize>§cuda_device_count: usize§selected_distributed_strategy: String§selected_layer_split_plan: Option<String>§selected_layer_split_stages: Option<Vec<CudaLayerSplitStage>>Implementations§
Source§impl GpuDeviceSelection
impl GpuDeviceSelection
pub fn primary_device(&self) -> Device
pub fn requested_csv(&self) -> String
pub fn selected_csv(&self) -> String
pub fn apply_model_layer_count(&mut self, num_layers: usize) -> Result<bool>
pub fn runtime_config_entries(&self) -> Vec<RuntimeConfigEntry>
pub fn insert_backend_options(&self, options: &mut HashMap<String, Value>)
Trait Implementations§
Source§impl Clone for GpuDeviceSelection
impl Clone for GpuDeviceSelection
Source§fn clone(&self) -> GpuDeviceSelection
fn clone(&self) -> GpuDeviceSelection
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 GpuDeviceSelection
impl Debug for GpuDeviceSelection
impl Eq for GpuDeviceSelection
Source§impl PartialEq for GpuDeviceSelection
impl PartialEq for GpuDeviceSelection
impl StructuralPartialEq for GpuDeviceSelection
Auto Trait Implementations§
impl Freeze for GpuDeviceSelection
impl RefUnwindSafe for GpuDeviceSelection
impl Send for GpuDeviceSelection
impl Sync for GpuDeviceSelection
impl Unpin for GpuDeviceSelection
impl UnsafeUnpin for GpuDeviceSelection
impl UnwindSafe for GpuDeviceSelection
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more