pub struct DecodeCost {
pub machine: &'static str,
pub chips: u32,
pub stages: Vec<StageCost>,
pub floor_s: f64,
pub floor_binds: Bind,
pub time_s: Option<f64>,
pub collectives: usize,
pub residency: Vec<(TierKind, f64)>,
pub provenance: Provenance,
}Expand description
One token of a step on a machine.
Fields§
§machine: &'static str§chips: u32§stages: Vec<StageCost>§floor_s: f64No implementation decodes a token faster: the largest of the summed memory, compute and collective terms, with undeclared terms at zero.
floor_binds: Bind§time_s: Option<f64>Each stage’s roofline plus its collective and its overhead, summed along the chain — None while any
term it needs is undeclared.
collectives: usizeReductions across chips per token.
residency: Vec<(TierKind, f64)>Of each tier, the share of the held bytes it keeps, per chip.
provenance: ProvenanceThe weakest fact the price rests on.
Implementations§
Source§impl DecodeCost
impl DecodeCost
pub fn floor_tokens_per_s(&self) -> f64
pub fn tokens_per_s(&self) -> Option<f64>
Trait Implementations§
Source§impl Clone for DecodeCost
impl Clone for DecodeCost
Source§fn clone(&self) -> DecodeCost
fn clone(&self) -> DecodeCost
Returns a duplicate of the value. Read more
1.0.0 · 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 DecodeCost
impl Debug for DecodeCost
Source§impl PartialEq for DecodeCost
impl PartialEq for DecodeCost
Source§impl Serialize for DecodeCost
impl Serialize for DecodeCost
impl StructuralPartialEq for DecodeCost
Auto Trait Implementations§
impl Freeze for DecodeCost
impl RefUnwindSafe for DecodeCost
impl Send for DecodeCost
impl Sync for DecodeCost
impl Unpin for DecodeCost
impl UnsafeUnpin for DecodeCost
impl UnwindSafe for DecodeCost
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,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.