pub struct PlacementPlan {
pub assignments: Vec<LayerAssignment>,
pub quantization_mode: QuantizationMode,
pub total_layers: usize,
pub participating_nodes: Vec<String>,
}Expand description
Layer placement plan across nodes
Fields§
§assignments: Vec<LayerAssignment>Assignments per node
quantization_mode: QuantizationModeSelected quantization mode
total_layers: usizeTotal layers assigned
participating_nodes: Vec<String>Nodes participating in plan
Implementations§
Source§impl PlacementPlan
impl PlacementPlan
Sourcepub fn new(
assignments: Vec<LayerAssignment>,
quantization_mode: QuantizationMode,
) -> Self
pub fn new( assignments: Vec<LayerAssignment>, quantization_mode: QuantizationMode, ) -> Self
Create new placement plan
OPTIMIZATION: Consolidates total_layers summation and participating_nodes collection into a single pass over assignments. Deduplicates node IDs in-place without duplicate string allocations when nodes have multiple chunked assignments.
Trait Implementations§
Source§impl Clone for PlacementPlan
impl Clone for PlacementPlan
Source§fn clone(&self) -> PlacementPlan
fn clone(&self) -> PlacementPlan
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 PlacementPlan
impl Debug for PlacementPlan
Source§impl Default for PlacementPlan
impl Default for PlacementPlan
Source§fn default() -> PlacementPlan
fn default() -> PlacementPlan
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PlacementPlan
impl RefUnwindSafe for PlacementPlan
impl Send for PlacementPlan
impl Sync for PlacementPlan
impl Unpin for PlacementPlan
impl UnsafeUnpin for PlacementPlan
impl UnwindSafe for PlacementPlan
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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