pub struct ActivationProgramV1 {
pub topology: Digest,
pub operations: Vec<ActivationOperationV1>,
pub observations: Vec<Digest>,
}Expand description
Ordered activation operations and observation requests.
Fields§
§topology: DigestRequired model-topology identity.
operations: Vec<ActivationOperationV1>Ordered tensor operations.
observations: Vec<Digest>Canonically ordered capture-plan identities requested for observation.
Implementations§
Source§impl ActivationProgramV1
impl ActivationProgramV1
Sourcepub fn digest_for(
&self,
topology: &TextModelTopologyV1,
) -> Result<Digest, CoreError>
pub fn digest_for( &self, topology: &TextModelTopologyV1, ) -> Result<Digest, CoreError>
Validates the program against a topology and returns its identity.
Vector-bank references are resolved separately by an execution runtime.
§Errors
Returns an error for topology mismatch, empty or excessive operations, malformed sites, positions, scales, or observation identities.
Trait Implementations§
Source§impl Clone for ActivationProgramV1
impl Clone for ActivationProgramV1
Source§fn clone(&self) -> ActivationProgramV1
fn clone(&self) -> ActivationProgramV1
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 ActivationProgramV1
impl Debug for ActivationProgramV1
Source§impl<'de> Deserialize<'de> for ActivationProgramV1
impl<'de> Deserialize<'de> for ActivationProgramV1
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ActivationProgramV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ActivationProgramV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ActivationProgramV1
Source§impl PartialEq for ActivationProgramV1
impl PartialEq for ActivationProgramV1
Source§impl Serialize for ActivationProgramV1
impl Serialize for ActivationProgramV1
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ActivationProgramV1
Auto Trait Implementations§
impl Freeze for ActivationProgramV1
impl RefUnwindSafe for ActivationProgramV1
impl Send for ActivationProgramV1
impl Sync for ActivationProgramV1
impl Unpin for ActivationProgramV1
impl UnsafeUnpin for ActivationProgramV1
impl UnwindSafe for ActivationProgramV1
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