class_docstr: A baseclass for modules to perform various classification tasks.
class_docstr_tok: ["A","baseclass","for","modules","to","perform","various","classification","tasks","."]
docstr: Common post-processing to be called at the end of concrete Classifiers init methods
  Args:
    use_transformer_init : whether or not to apply transformer_weights_init
docstr_tok: ["Common","post-processing","to","be","called","at","the","end","of","concrete","Classifiers","init","methods","Args",":","use_transformer_init",":","whether","or","not","to","apply","transformer_weights_init"]
code: def post_init(self, use_transformer_init: bool):
      """
      Common post-processing to be called at the end of concrete Classifiers init methods
      Args:
        use_transformer_init : whether or not to apply transformer_weights_init
      """
      if use_transformer_init:
          self.apply(
              lambda module: transformer_weights_init(
                  module, xavier=False
              )
          )
  
file_path: NeMo/nemo/collections/nlp/modules/common/classifier.py
imports: from typing import Dict, Optional
  import torch
  from torch import nn
  from nemo.collections.common.parts import transformer_weights_init
  from nemo.core.classes import Exportable, NeuralModule
  from nemo.core.neural_types import ChannelType, NeuralType
label_desc: Use image node_id 3 for calling the Classifier obj's underlying member method code with example usage: obj.post_init(use_transformer_init) without return types