pub struct BoundaryWireSchema { /* private fields */ }Expand description
Complete primary and ordered auxiliary wire schema for one architecture boundary.
Implementations§
Source§impl BoundaryWireSchema
impl BoundaryWireSchema
Sourcepub fn new(
identity: &'static str,
primary: BoundaryTensorSpec,
auxiliary: impl IntoIterator<Item = BoundaryTensorSpec>,
) -> Result<Self, ArchitectureBoundaryError>
pub fn new( identity: &'static str, primary: BoundaryTensorSpec, auxiliary: impl IntoIterator<Item = BoundaryTensorSpec>, ) -> Result<Self, ArchitectureBoundaryError>
Creates and validates an architecture-owned wire schema.
Sourcepub const fn primary(&self) -> &BoundaryTensorSpec
pub const fn primary(&self) -> &BoundaryTensorSpec
Returns the primary evolving activation declaration.
Sourcepub fn auxiliary(&self) -> &[BoundaryTensorSpec]
pub fn auxiliary(&self) -> &[BoundaryTensorSpec]
Returns auxiliary tensor declarations in canonical transport order.
Sourcepub fn resolve(
&self,
batch_size: i32,
sequence_length: i32,
) -> Result<ResolvedBoundaryWireSchema, ArchitectureBoundaryError>
pub fn resolve( &self, batch_size: i32, sequence_length: i32, ) -> Result<ResolvedBoundaryWireSchema, ArchitectureBoundaryError>
Resolves invocation-dependent dimensions without backend family logic.
Sourcepub fn resolve_each(
&self,
batch_size: i32,
sequence_lengths: impl IntoIterator<Item = i32>,
) -> Result<ResolvedBoundaryWireSchema, ArchitectureBoundaryError>
pub fn resolve_each( &self, batch_size: i32, sequence_lengths: impl IntoIterator<Item = i32>, ) -> Result<ResolvedBoundaryWireSchema, ArchitectureBoundaryError>
Resolves one exact sequence extent per primary/auxiliary tensor.
This is used by composite boundaries whose evolving internal activation and learned side outputs have different sequence geometries. The family supplies values in canonical schema order; the runtime only validates and substitutes the declared symbolic dimensions.
Trait Implementations§
Source§impl Clone for BoundaryWireSchema
impl Clone for BoundaryWireSchema
Source§fn clone(&self) -> BoundaryWireSchema
fn clone(&self) -> BoundaryWireSchema
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 BoundaryWireSchema
impl Debug for BoundaryWireSchema
impl Eq for BoundaryWireSchema
Source§impl Hash for BoundaryWireSchema
impl Hash for BoundaryWireSchema
Source§impl PartialEq for BoundaryWireSchema
impl PartialEq for BoundaryWireSchema
impl StructuralPartialEq for BoundaryWireSchema
Auto Trait Implementations§
impl Freeze for BoundaryWireSchema
impl RefUnwindSafe for BoundaryWireSchema
impl Send for BoundaryWireSchema
impl Sync for BoundaryWireSchema
impl Unpin for BoundaryWireSchema
impl UnsafeUnpin for BoundaryWireSchema
impl UnwindSafe for BoundaryWireSchema
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