class_docstr: Constructs instances of :class:`LayerNorm`.
docstr: :param model_dim:
      The dimensionality of the model.
  :param device:
      The device on which to initialize the module.
  :param dtype:
      The data type of the module.
docstr_tok: [":","param","model_dim",":","The","dimensionality","of","the","model",".",":","param","device",":","The","device","on","which","to","initialize","the","module",".",":","param","dtype",":","The","data","type","of","the","module","."]
code: def __call__(
      self,
      model_dim: int,
      *,
      device: Optional[Device] = None,
      dtype: Optional[DataType] = None,
  ) -> LayerNorm:
      """
      :param model_dim:
          The dimensionality of the model.
      :param device:
          The device on which to initialize the module.
      :param dtype:
          The data type of the module.
      """
  
imports: from typing import Optional, Protocol
  from fairseq2.nn.normalization import LayerNorm, StandardLayerNorm
  from fairseq2.typing import DataType, Device
label_desc: Use image node_id 1 for calling the LayerNormFactory obj's underlying member method code with example usage: obj.__call__(model_dim) without return types