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>;
}Expand description
Statically dispatched text-input seam for an ordinary layered decoder.
Hybrid, routed, composite, partitioned, prediction, and realtime execution use separate extension contracts rather than adding requirements here.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".