pub struct BackendMechanismCapabilities { /* private fields */ }Expand description
Family- and execution-class-neutral backend mechanism report.
Implementations§
Source§impl BackendMechanismCapabilities
impl BackendMechanismCapabilities
Sourcepub fn new(
operators: NeuralOperatorCapabilities,
weight_lowerings: Vec<WeightLoweringCapability>,
weight_residencies: Vec<WeightResidencyMechanism>,
state_residencies: Vec<StateResidencyMechanism>,
) -> Self
pub fn new( operators: NeuralOperatorCapabilities, weight_lowerings: Vec<WeightLoweringCapability>, weight_residencies: Vec<WeightResidencyMechanism>, state_residencies: Vec<StateResidencyMechanism>, ) -> Self
Creates a fail-closed mechanism report.
Sourcepub const fn with_session(self, session: SessionCapabilities) -> Self
pub const fn with_session(self, session: SessionCapabilities) -> Self
Adds supported session-observation and persistence mechanisms.
Sourcepub const fn with_prompt_cache(self, supported: bool) -> Self
pub const fn with_prompt_cache(self, supported: bool) -> Self
Declares prompt-cache persistence support.
Sourcepub const fn with_exact_completion(self, supported: bool) -> Self
pub const fn with_exact_completion(self, supported: bool) -> Self
Declares exact native-completion ownership support.
Sourcepub fn with_grouped_operations(
self,
operations: impl IntoIterator<Item = GroupedOperationRequirement>,
) -> Self
pub fn with_grouped_operations( self, operations: impl IntoIterator<Item = GroupedOperationRequirement>, ) -> Self
Declares exact grouped operation mechanisms.
Sourcepub const fn operators(&self) -> NeuralOperatorCapabilities
pub const fn operators(&self) -> NeuralOperatorCapabilities
Returns neural-operation mechanisms.
Sourcepub fn weight_lowerings(&self) -> &[WeightLoweringCapability]
pub fn weight_lowerings(&self) -> &[WeightLoweringCapability]
Returns source-to-executable weight-lowering mechanisms.
Sourcepub fn weight_residencies(&self) -> &[WeightResidencyMechanism]
pub fn weight_residencies(&self) -> &[WeightResidencyMechanism]
Returns weight-residency mechanisms.
Sourcepub fn state_residencies(&self) -> &[StateResidencyMechanism]
pub fn state_residencies(&self) -> &[StateResidencyMechanism]
Returns mutable-state residency mechanisms.
Sourcepub const fn session(&self) -> SessionCapabilities
pub const fn session(&self) -> SessionCapabilities
Returns session-observation and persistence mechanisms.
Sourcepub const fn prompt_cache(&self) -> bool
pub const fn prompt_cache(&self) -> bool
Returns whether prompt-cache persistence is supported.
Sourcepub const fn exact_completion(&self) -> bool
pub const fn exact_completion(&self) -> bool
Returns whether exact native-completion ownership is supported.
Sourcepub fn grouped_operations(&self) -> &[GroupedOperationRequirement]
pub fn grouped_operations(&self) -> &[GroupedOperationRequirement]
Returns exact grouped operation mechanisms.
Trait Implementations§
Source§impl Clone for BackendMechanismCapabilities
impl Clone for BackendMechanismCapabilities
Source§fn clone(&self) -> BackendMechanismCapabilities
fn clone(&self) -> BackendMechanismCapabilities
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 BackendMechanismCapabilities
impl Debug for BackendMechanismCapabilities
impl Eq for BackendMechanismCapabilities
impl StructuralPartialEq for BackendMechanismCapabilities
Auto Trait Implementations§
impl Freeze for BackendMechanismCapabilities
impl RefUnwindSafe for BackendMechanismCapabilities
impl Send for BackendMechanismCapabilities
impl Sync for BackendMechanismCapabilities
impl Unpin for BackendMechanismCapabilities
impl UnsafeUnpin for BackendMechanismCapabilities
impl UnwindSafe for BackendMechanismCapabilities
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