pub fn construct_replicated_text_session_with_runtime<A, B, M, D>(
binding: PreparedPartitionedSessionRuntime<D::Runtime, M::State>,
mechanisms: M,
driver: D,
) -> Result<ReplicatedTextSession<A, B, M, D>, ReplicatedTextSessionError<A::Error, M::PolicyError, M::Error>>where
B: SubmissionBackend<Executor = <<B as NeuralBackend>::Tensor as Tensor>::Context>,
M: ReplicatedTextSessionMechanisms<A, B>,
A: LayeredArchitecture<B, M::State>,
D: ReplicatedTextExecutionStrategy<A, B, M::State, M::ResidentPolicy, M::BoundedPolicy>,
A::Error: Display,
M::PolicyError: Display,
M::Error: Display,Expand description
Constructs a partitioned strategy through the ordinary replicated-text session lifecycle.
Rank-local architecture construction prepares binding; this function only validates its
state/cache ownership and installs it behind the same session implementation used by ordinary
replicated execution. Partition strategies need not and cannot manufacture a full-graph
ReplicatedTextRuntime.