pub struct ProgramCheckpointInputs { /* private fields */ }Expand description
Explicit checkpoint input roles. Conditioning inputs are compared in full, including shape, dtype and byte contents. Output-only inputs may be omitted from matching only after the execution plan proves they cannot affect any state. Names and tensor widths do not establish an input’s semantic role.
Implementations§
Source§impl ProgramCheckpointInputs
impl ProgramCheckpointInputs
pub fn new( token_input: ProgramValueId, conditioning_inputs: BTreeSet<ProgramValueId>, ) -> Result<Self, VNextError>
Sourcepub fn with_output_only_inputs(
self,
output_only_inputs: BTreeSet<ProgramValueId>,
) -> Result<Self, VNextError>
pub fn with_output_only_inputs( self, output_only_inputs: BTreeSet<ProgramValueId>, ) -> Result<Self, VNextError>
Declare inputs that affect only current outputs, not continuation state. This declaration alone is not authority to skip matching: plan derivation checks all value, token-work and exact-alias paths to state effects.
pub fn token_input(&self) -> &ProgramValueId
pub fn conditioning_inputs(&self) -> &BTreeSet<ProgramValueId>
pub fn output_only_inputs(&self) -> &BTreeSet<ProgramValueId>
Trait Implementations§
Source§impl Clone for ProgramCheckpointInputs
impl Clone for ProgramCheckpointInputs
Source§fn clone(&self) -> ProgramCheckpointInputs
fn clone(&self) -> ProgramCheckpointInputs
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 ProgramCheckpointInputs
impl Debug for ProgramCheckpointInputs
Source§impl<'de> Deserialize<'de> for ProgramCheckpointInputs
impl<'de> Deserialize<'de> for ProgramCheckpointInputs
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ProgramCheckpointInputs
Source§impl PartialEq for ProgramCheckpointInputs
impl PartialEq for ProgramCheckpointInputs
Source§impl Serialize for ProgramCheckpointInputs
impl Serialize for ProgramCheckpointInputs
impl StructuralPartialEq for ProgramCheckpointInputs
Auto Trait Implementations§
impl Freeze for ProgramCheckpointInputs
impl RefUnwindSafe for ProgramCheckpointInputs
impl Send for ProgramCheckpointInputs
impl Sync for ProgramCheckpointInputs
impl Unpin for ProgramCheckpointInputs
impl UnsafeUnpin for ProgramCheckpointInputs
impl UnwindSafe for ProgramCheckpointInputs
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