class_docstr: Builds modules of an S2T Transformer model as described in
  :cite:t:`https://doi.org/10.48550/arxiv.1911.08460`.
  
  To tweak the architecture, you can derive from this class and override the
  corresponding methods.
class_docstr_tok: ["Builds","modules","of","an","S2T","Transformer","model","as","described","in",":","cite",":","t",":","`","https",":","\/\/doi.org\/10.48550\/arxiv.1911.08460","`",".","To","tweak","the","architecture",",","you","can","derive","from","this","class","and","override","the","corresponding","methods","."]
docstr: Build a Transformer decoder layer.
docstr_tok: ["Build","a","Transformer","decoder","layer","."]
code: def build_decoder_layer(self) -> TransformerDecoderLayer:
      """Build a Transformer decoder layer."""
      self_attn = self.build_decoder_attention()
  
      encoder_decoder_attn = self.build_decoder_attention()
  
      ffn = self.build_ffn()
  
      return StandardTransformerDecoderLayer(
          self_attn,
          encoder_decoder_attn,
          ffn,
          dropout_p=self.config.dropout_p,
          norm_order=TransformerNormOrder.PRE,
          device=self.device,
          dtype=self.dtype,
      )
  
imports: from dataclasses import dataclass
  from typing import Optional
  from torch.nn import SiLU
  from fairseq2.data import VocabularyInfo
  from fairseq2.models.conformer import ConformerBlock, ConformerConvolution
  from fairseq2.models.s2t_transformer.feature_extractor import Conv1dFbankSubsampler
  from fairseq2.models.s2t_transformer.frontend import S2TTransformerFrontend
  from fairseq2.models.transformer import TransformerEmbeddingFrontend, TransformerFrontend, TransformerModel, init_final_projection
  from fairseq2.models.utils import ArchitectureRegistry
  from fairseq2.nn.embedding import StandardEmbedding, init_scaled_embedding
  from fairseq2.nn.position_encoder import PositionEncoder, SinusoidalPositionEncoder
  from fairseq2.nn.projection import Linear
  from fairseq2.nn.transformer import FeedForwardNetwork, MultiheadAttention, RelativePositionalEncoding, RelativePositionSDPA, StandardFeedForwardNetwork, StandardMultiheadAttention, StandardTransformerDecoder, StandardTransformerDecoderLayer, StandardTransformerEncoder, StandardTransformerEncoderLayer, TransformerDecoder, TransformerDecoderLayer, TransformerEncoder, TransformerEncoderLayer, TransformerNormOrder, create_default_sdpa
  from fairseq2.typing import DataType, Device
label_desc: Use image node_id 11 for calling the S2TTransformerBuilder obj's underlying member method code with example usage: obj.build_decoder_layer() and returns: StandardTransformerDecoderLayer