pub trait BuildDecoderLayer: Debug {
type Cache;
// Required method
fn build_decoder_layer(
&self,
vb: VarBuilder<'_>,
) -> Result<Box<dyn DecoderLayer<Cache = Self::Cache>>, BoxedError>;
}Expand description
Trait for building decoder layers.
Required Associated Types§
Required Methods§
Sourcefn build_decoder_layer(
&self,
vb: VarBuilder<'_>,
) -> Result<Box<dyn DecoderLayer<Cache = Self::Cache>>, BoxedError>
fn build_decoder_layer( &self, vb: VarBuilder<'_>, ) -> Result<Box<dyn DecoderLayer<Cache = Self::Cache>>, BoxedError>
Build a decoder layer.