pub enum ReusableExecutionProgramShape {
UniformDecode {
request_capacity: u32,
token_capacity: u64,
query_tokens_per_sequence: u32,
},
Prefill {
tokens_processed: u64,
token_capacity: u64,
total_prompt_tokens: u64,
},
}Expand description
Exact logical startup capture case for a reusable device-program catalog.
Workspace buckets are capacity envelopes and may cover smaller work. These shapes are different: each row requests one exact logical startup case. The resulting physical program identity additionally includes pages, provider topology, lane layout, and runtime fingerprints. Consequently one logical width does not claim replay coverage for every context/topology variant. v0.8.0 deliberately does not imply padded replay.
Variants§
Implementations§
Source§impl ReusableExecutionProgramShape
impl ReusableExecutionProgramShape
pub fn uniform_decode( request_capacity: u32, query_tokens_per_sequence: u32, ) -> Result<Self, VNextError>
pub fn prefill( tokens_processed: u64, token_capacity: u64, total_prompt_tokens: u64, ) -> Result<Self, VNextError>
pub const fn request_capacity(self) -> u32
pub const fn token_capacity(self) -> u64
Trait Implementations§
Source§impl Clone for ReusableExecutionProgramShape
impl Clone for ReusableExecutionProgramShape
Source§fn clone(&self) -> ReusableExecutionProgramShape
fn clone(&self) -> ReusableExecutionProgramShape
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 moreimpl Copy for ReusableExecutionProgramShape
Source§impl<'de> Deserialize<'de> for ReusableExecutionProgramShape
impl<'de> Deserialize<'de> for ReusableExecutionProgramShape
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ReusableExecutionProgramShape
Source§impl Hash for ReusableExecutionProgramShape
impl Hash for ReusableExecutionProgramShape
Source§impl Ord for ReusableExecutionProgramShape
impl Ord for ReusableExecutionProgramShape
Source§fn cmp(&self, other: &ReusableExecutionProgramShape) -> Ordering
fn cmp(&self, other: &ReusableExecutionProgramShape) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for ReusableExecutionProgramShape
impl PartialOrd for ReusableExecutionProgramShape
impl StructuralPartialEq for ReusableExecutionProgramShape
Auto Trait Implementations§
impl Freeze for ReusableExecutionProgramShape
impl RefUnwindSafe for ReusableExecutionProgramShape
impl Send for ReusableExecutionProgramShape
impl Sync for ReusableExecutionProgramShape
impl Unpin for ReusableExecutionProgramShape
impl UnsafeUnpin for ReusableExecutionProgramShape
impl UnwindSafe for ReusableExecutionProgramShape
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