class_docstr: Module that apply to a gray tensor (integer tensor) a colormap.
  
  Args:
      input_tensor: the input tensor of a gray image.
      colormap: the colormap desired to be applied to the input tensor.
  
  Returns:
      A RGB tensor with the applied color map into the input_tensor
  
  Example:
      >>> input_tensor = torch.tensor([[[0, 1, 2], [25, 50, 63]]])
      >>> colormap = AUTUMN()
      >>> apply_cm = ApplyColorMap(colormap)
      >>> apply_cm(input_tensor)
      tensor([[[1.0000, 1.0000, 1.0000],
               [1.0000, 1.0000, 1.0000]],
      <BLANKLINE>
              [[0.0000, 0.0159, 0.0317],
               [0.3968, 0.7937, 1.0000]],
      <BLANKLINE>
              [[0.0000, 0.0000, 0.0000],
               [0.0000, 0.0000, 0.0000]]])
class_docstr_tok: ["Module","that","apply","to","a","gray","tensor","(","integer","tensor",")","a","colormap",".","Args",":","input_tensor",":","the","input","tensor","of","a","gray","image",".","colormap",":","the","colormap","desired","to","be","applied","to","the","input","tensor",".","Returns",":","A","RGB","tensor","with","the","applied","color","map","into","the","input_tensor","Example",":",">",">",">","input_tensor","=","torch.tensor","(","[","[","[","0",",","1",",","2","]",",","[","25",",","50",",","63","]","]","]",")",">",">",">","colormap","=","AUTUMN","(",")",">",">",">","apply_cm","=","ApplyColorMap","(","colormap",")",">",">",">","apply_cm","(","input_tensor",")","tensor","(","[","[","[","1.0000",",","1.0000",",","1.0000","]",",","[","1.0000",",","1.0000",",","1.0000","]","]",",","<","BLANKLINE",">","[","[","0.0000",",","0.0159",",","0.0317","]",",","[","0.3968",",","0.7937",",","1.0000","]","]",",","<","BLANKLINE",">","[","[","0.0000",",","0.0000",",","0.0000","]",",","[","0.0000",",","0.0000",",","0.0000","]","]","]",")"]
code: def forward(self, input_tensor: Tensor) -> Tensor:
      return apply_colormap(input_tensor, self.colormap)
  
file_path: kornia/kornia/color/colormap.py
imports: from abc import ABC
  from typing import List, Optional
  import torch
  from torch.nn.functional import interpolate
  from kornia.core import Module, Tensor, tensor
  from kornia.core.check import KORNIA_CHECK_IS_GRAY
label_desc: Use image node_id 2 for calling the ApplyColorMap obj's underlying member method code with example usage: obj.forward(input_tensor) and returns: apply_colormap