class_docstr: Support MMOCR text recognition models.
  Refer to https://github.com/open-mmlab/mmocr
docstr: Assign an id to each layer. Layer ids will be used in layer-wise lr decay.
  Basically, id gradually increases when going from the output end to
  the input end. The layers defined in this class, e.g., head, have id 0.
  
  Setting all layers as the same id 0 for now.
  TODO: Need to investigate mmocr's model definitions
  
  Returns
  -------
  A dictionary mapping the layer names (keys) to their ids (values).
docstr_tok: ["Assign","an","id","to","each","layer",".","Layer","ids","will","be","used","in","layer-wise","lr","decay",".","Basically",",","id","gradually","increases","when","going","from","the","output","end","to","the","input","end",".","The","layers","defined","in","this","class",",","e.g.",",","head",",","have","id","0",".","Setting","all","layers","as","the","same","id","0","for","now",".","TODO",":","Need","to","investigate","mmocr","'s","model","definitions","Returns","--","--","--","-","A","dictionary","mapping","the","layer","names","(","keys",")","to","their","ids","(","values",")","."]
code: def get_layer_ids(
      self,
  ):
      """
      Assign an id to each layer. Layer ids will be used in layer-wise lr decay.
      Basically, id gradually increases when going from the output end to
      the input end. The layers defined in this class, e.g., head, have id 0.
  
      Setting all layers as the same id 0 for now.
      TODO: Need to investigate mmocr's model definitions
  
      Returns
      -------
      A dictionary mapping the layer names (keys) to their ids (values).
      """
      name_to_id = {}
      for n, _ in self.named_parameters():
          name_to_id[n] = 0
      return name_to_id
  
file_path: autogluon/multimodal/src/autogluon/multimodal/models/mmocr_text_recognition.py
imports: import logging
  from typing import List, Optional
  from torch import nn
  from ..constants import AUTOMM, COLUMN, COLUMN_FEATURES, FEATURES, IMAGE, IMAGE_VALID_NUM, LABEL, LOGITS, MASKS, SCORE, TEXT
  from .utils import assign_layer_ids, get_column_features, get_mmocr_config_and_model, get_model_head
label_desc: Use image node_id 8 for calling the MMOCRAutoModelForTextRecognition obj's underlying member method code with example usage: obj.get_layer_ids() and returns: name_to_id