pub struct ActivationConfiguration { /* private fields */ }Expand description
Validated activation program, vector banks, captures, and graph profile.
Implementations§
Source§impl ActivationConfiguration
impl ActivationConfiguration
Sourcepub fn new(
model: &Model,
profile: LlamaCppTensorProfile,
program: ActivationProgramV1,
capture_plans: Vec<ActivationCapturePlanV1>,
vector_banks: Vec<ActivationVectorBankV1>,
) -> Result<ActivationConfiguration, Error>
pub fn new( model: &Model, profile: LlamaCppTensorProfile, program: ActivationProgramV1, capture_plans: Vec<ActivationCapturePlanV1>, vector_banks: Vec<ActivationVectorBankV1>, ) -> Result<ActivationConfiguration, Error>
Validates one complete activation runtime before context allocation.
Every vector reference must resolve exactly, every capture identity must match the program’s canonical observation list, and every selected graph site must be present in the supplied compatibility profile.
§Errors
Returns an error for any topology, profile, vector, operation, capture, ordering, or identity mismatch.
Sourcepub const fn program_identity(&self) -> &Digest
pub const fn program_identity(&self) -> &Digest
Returns the exact activation-program identity.
Sourcepub const fn profile_identity(&self) -> &Digest
pub const fn profile_identity(&self) -> &Digest
Returns the exact graph compatibility-profile identity.
Trait Implementations§
Source§impl Clone for ActivationConfiguration
impl Clone for ActivationConfiguration
Source§fn clone(&self) -> ActivationConfiguration
fn clone(&self) -> ActivationConfiguration
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 ActivationConfiguration
impl Debug for ActivationConfiguration
Source§impl PartialEq for ActivationConfiguration
impl PartialEq for ActivationConfiguration
impl StructuralPartialEq for ActivationConfiguration
Auto Trait Implementations§
impl Freeze for ActivationConfiguration
impl RefUnwindSafe for ActivationConfiguration
impl Send for ActivationConfiguration
impl Sync for ActivationConfiguration
impl Unpin for ActivationConfiguration
impl UnsafeUnpin for ActivationConfiguration
impl UnwindSafe for ActivationConfiguration
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