pub enum NodeWorkContract {
Fixed,
Tokens {
source: NodeTokenBindingProjection,
projections: Vec<NodeTokenBindingProjection>,
},
}Expand description
Core-derived work mapping stored in the immutable execution plan. Token projections are resolved from one model-declared source dimension through the operation’s symbolic signature, so providers never infer work from a tensor element count or model family.
Variants§
Implementations§
Source§impl NodeWorkContract
impl NodeWorkContract
pub fn token_source(&self) -> Option<&NodeTokenBindingProjection>
pub fn token_projections(&self) -> &[NodeTokenBindingProjection]
pub fn token_projection( &self, role: ResolvedValueRole, ordinal: u32, ) -> Option<&NodeTokenBindingProjection>
Trait Implementations§
Source§impl Clone for NodeWorkContract
impl Clone for NodeWorkContract
Source§fn clone(&self) -> NodeWorkContract
fn clone(&self) -> NodeWorkContract
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 NodeWorkContract
impl Debug for NodeWorkContract
Source§impl<'de> Deserialize<'de> for NodeWorkContract
impl<'de> Deserialize<'de> for NodeWorkContract
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 NodeWorkContract
Source§impl PartialEq for NodeWorkContract
impl PartialEq for NodeWorkContract
Source§impl Serialize for NodeWorkContract
impl Serialize for NodeWorkContract
impl StructuralPartialEq for NodeWorkContract
Auto Trait Implementations§
impl Freeze for NodeWorkContract
impl RefUnwindSafe for NodeWorkContract
impl Send for NodeWorkContract
impl Sync for NodeWorkContract
impl Unpin for NodeWorkContract
impl UnsafeUnpin for NodeWorkContract
impl UnwindSafe for NodeWorkContract
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