pub struct ReplicatedTextRequirements { /* private fields */ }Expand description
Exact architecture and artifact requirements for replicated text execution.
Implementations§
Source§impl ReplicatedTextRequirements
impl ReplicatedTextRequirements
Sourcepub 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>
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.
Sourcepub fn with_floating_state_source(self, dtype: TensorDtype) -> Self
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.
Sourcepub fn floating_state_source(&self) -> Option<&TensorDtype>
pub fn floating_state_source(&self) -> Option<&TensorDtype>
Returns the exact source dtype used to resolve generic floating state.
Sourcepub fn with_auxiliary_parameters(
self,
parameters: Vec<ReplicatedTextParameterRequirement>,
recipes: BTreeMap<String, DerivedWeightRecipe>,
outputs: BTreeMap<String, RecipeMetadata>,
) -> Result<Self, ReplicatedTextContractError>
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.
Sourcepub fn with_derived_recipes(
self,
recipes: BTreeMap<String, DerivedWeightRecipe>,
outputs: BTreeMap<String, RecipeMetadata>,
) -> Result<Self, ReplicatedTextContractError>
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.
Attaches exact derivations together with architecture-declared physical sources which intentionally feed more than one logical destination.
Sourcepub fn architecture_identity(&self) -> &str
pub fn architecture_identity(&self) -> &str
Returns the normalized architecture identity bound during admission.
Sourcepub fn with_extension_architecture_identity(
self,
architecture_identity: impl Into<String>,
) -> Result<Self, ReplicatedTextContractError>
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.
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 operations required by this architecture path.
Sourcepub const fn operators(&self) -> NeuralOperatorCapabilities
pub const fn operators(&self) -> NeuralOperatorCapabilities
Returns required optional neural-operation semantics.
Sourcepub const fn execution_graph(&self) -> &ExecutionGraph
pub const fn execution_graph(&self) -> &ExecutionGraph
Returns the architecture-owned execution graph.
Sourcepub const fn execution_units(&self) -> &ExecutionUnitLayout
pub const fn execution_units(&self) -> &ExecutionUnitLayout
Returns group-major execution-unit geometry.
Sourcepub fn group_transports(&self) -> &[ArchitectureGroupTransport]
pub fn group_transports(&self) -> &[ArchitectureGroupTransport]
Returns architecture-owned group transports.
Sourcepub const fn state_layout(&self) -> &StateLayout
pub const fn state_layout(&self) -> &StateLayout
Returns complete mutable-state geometry.
Sourcepub const fn state_access(&self) -> ReplicatedTextStateAccess
pub const fn state_access(&self) -> ReplicatedTextStateAccess
Returns the state-access semantics used by typed traversal.
Sourcepub fn parameters(&self) -> &[ReplicatedTextParameterRequirement]
pub fn parameters(&self) -> &[ReplicatedTextParameterRequirement]
Returns canonical logical parameter requirements.
Sourcepub fn auxiliary_parameters(&self) -> &[ReplicatedTextParameterRequirement]
pub fn auxiliary_parameters(&self) -> &[ReplicatedTextParameterRequirement]
Returns exact additive auxiliary parameter requirements.
Sourcepub fn derived_recipes(&self) -> &BTreeMap<String, DerivedWeightRecipe>
pub fn derived_recipes(&self) -> &BTreeMap<String, DerivedWeightRecipe>
Returns exact derivations that are part of the selected artifact contract.
Sourcepub fn derived_recipe_outputs(&self) -> &BTreeMap<String, RecipeMetadata>
pub fn derived_recipe_outputs(&self) -> &BTreeMap<String, RecipeMetadata>
Returns admission-time output metadata for every exact derivation.
Returns physical sources explicitly declared as shared by the architecture.
Sourcepub fn grouped_operations(&self) -> &[GroupedOperationRequirement]
pub fn grouped_operations(&self) -> &[GroupedOperationRequirement]
Returns exact grouped operations required before construction.
Trait Implementations§
Source§impl Clone for ReplicatedTextRequirements
impl Clone for ReplicatedTextRequirements
Source§fn clone(&self) -> ReplicatedTextRequirements
fn clone(&self) -> ReplicatedTextRequirements
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more