Skip to main content

ReplicatedTextRequirements

Struct ReplicatedTextRequirements 

Source
pub struct ReplicatedTextRequirements { /* private fields */ }
Expand description

Exact architecture and artifact requirements for replicated text execution.

Implementations§

Source§

impl ReplicatedTextRequirements

Source

pub fn new( architecture_identity: impl Into<String>, operators: NeuralOperatorCapabilities, execution_graph: ExecutionGraph, execution_units: ExecutionUnitLayout, group_transports: Vec<ArchitectureGroupTransport>, state_layout: StateLayout, state_access: ReplicatedTextStateAccess, parameters: Vec<ReplicatedTextParameterRequirement>, ) -> Result<Self, ReplicatedTextContractError>

Creates exact requirements from architecture and admitted-artifact facts only.

Source

pub fn with_floating_state_source(self, dtype: TensorDtype) -> Self

Records the dtype of the architecture-declared activation source before native selection. This is source metadata, not a request to convert checkpoint weights.

Source

pub fn floating_state_source(&self) -> Option<&TensorDtype>

Returns the exact source dtype used to resolve generic floating state.

Source

pub fn with_auxiliary_parameters( self, parameters: Vec<ReplicatedTextParameterRequirement>, recipes: BTreeMap<String, DerivedWeightRecipe>, outputs: BTreeMap<String, RecipeMetadata>, ) -> Result<Self, ReplicatedTextContractError>

Attaches exact additive auxiliary parameter requirements before backend selection.

Source

pub fn with_derived_recipes( self, recipes: BTreeMap<String, DerivedWeightRecipe>, outputs: BTreeMap<String, RecipeMetadata>, ) -> Result<Self, ReplicatedTextContractError>

Attaches the exact architecture-owned derivations selected for this artifact.

Source

pub fn with_derived_recipes_and_shared_sources( self, recipes: BTreeMap<String, DerivedWeightRecipe>, outputs: BTreeMap<String, RecipeMetadata>, shared_source_keys: BTreeSet<String>, ) -> Result<Self, ReplicatedTextContractError>

Attaches exact derivations together with architecture-declared physical sources which intentionally feed more than one logical destination.

Source

pub fn architecture_identity(&self) -> &str

Returns the normalized architecture identity bound during admission.

Source

pub fn with_extension_architecture_identity( self, architecture_identity: impl Into<String>, ) -> Result<Self, ReplicatedTextContractError>

Rebinds an admitted physical schema to a new architecture identity which deliberately implements the same complete neutral topology.

Source

pub fn with_grouped_operations( self, operations: impl IntoIterator<Item = GroupedOperationRequirement>, ) -> Self

Declares exact grouped operations required by this architecture path.

Source

pub const fn operators(&self) -> NeuralOperatorCapabilities

Returns required optional neural-operation semantics.

Source

pub const fn execution_graph(&self) -> &ExecutionGraph

Returns the architecture-owned execution graph.

Source

pub const fn execution_units(&self) -> &ExecutionUnitLayout

Returns group-major execution-unit geometry.

Source

pub fn group_transports(&self) -> &[ArchitectureGroupTransport]

Returns architecture-owned group transports.

Source

pub const fn state_layout(&self) -> &StateLayout

Returns complete mutable-state geometry.

Source

pub const fn state_access(&self) -> ReplicatedTextStateAccess

Returns the state-access semantics used by typed traversal.

Source

pub fn parameters(&self) -> &[ReplicatedTextParameterRequirement]

Returns canonical logical parameter requirements.

Source

pub fn auxiliary_parameters(&self) -> &[ReplicatedTextParameterRequirement]

Returns exact additive auxiliary parameter requirements.

Source

pub fn derived_recipes(&self) -> &BTreeMap<String, DerivedWeightRecipe>

Returns exact derivations that are part of the selected artifact contract.

Source

pub fn derived_recipe_outputs(&self) -> &BTreeMap<String, RecipeMetadata>

Returns admission-time output metadata for every exact derivation.

Source

pub fn shared_source_keys(&self) -> &BTreeSet<String>

Returns physical sources explicitly declared as shared by the architecture.

Source

pub fn grouped_operations(&self) -> &[GroupedOperationRequirement]

Returns exact grouped operations required before construction.

Trait Implementations§

Source§

impl Clone for ReplicatedTextRequirements

Source§

fn clone(&self) -> ReplicatedTextRequirements

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ReplicatedTextRequirements

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for ReplicatedTextRequirements

Source§

impl PartialEq for ReplicatedTextRequirements

Source§

fn eq(&self, other: &ReplicatedTextRequirements) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ReplicatedTextRequirements

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.