Skip to main content

ReplicatedTextArchitecture

Trait ReplicatedTextArchitecture 

Source
pub trait ReplicatedTextArchitecture<B, S>: LayeredArchitecture<B, S>
where B: NeuralBackend, S: RuntimeState<B>,
{ // Required method fn text_input<'a>( tokens: &'a B::Tensor, mask: Option<&'a B::Tensor>, ) -> Self::Input<'a>; // Provided method fn text_output_selection(&self) -> ReplicatedTextOutputSelection { ... } }
Expand description

Statically dispatched text-input seam for a layered decoder.

Routed, composite, partitioned, prediction, and realtime execution use separate extension contracts rather than adding requirements here.

Required Methods§

Source

fn text_input<'a>( tokens: &'a B::Tensor, mask: Option<&'a B::Tensor>, ) -> Self::Input<'a>

Forms the architecture-owned borrowed input for one text pass.

Provided Methods§

Source

fn text_output_selection(&self) -> ReplicatedTextOutputSelection

Declares how a causal-text session projects a complete architecture output.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§