class_docstr: The PixelContrastCrossEntropyLoss implementation based on PaddlePaddle.
  
  The original article refers to
  Wenguan Wang, Tianfei Zhou, et al. "Exploring Cross-Image Pixel Contrast for Semantic Segmentation"
  (https://arxiv.org/abs/2101.11939).
  
  Args:
      temperature (float, optional): Controling the numerical similarity of features. Default: 0.1.
      base_temperature (float, optional): Controling the numerical range of contrast loss. Default: 0.07.
      ignore_index (int, optional): Specifies a target value that is ignored
          and does not contribute to the input gradient. Default 255.
      max_samples (int, optional): Max sampling anchors. Default: 1024.
      max_views (int): Sampled samplers of a class. Default: 100.
class_docstr_tok: ["The","PixelContrastCrossEntropyLoss","implementation","based","on","PaddlePaddle",".","The","original","article","refers","to","Wenguan","Wang",",","Tianfei","Zhou",",","et","al",".","``","Exploring","Cross-Image","Pixel","Contrast","for","Semantic","Segmentation","''","(","https",":","\/\/arxiv.org\/abs\/2101.11939",")",".","Args",":","temperature","(","float",",","optional",")",":","Controling","the","numerical","similarity","of","features",".","Default",":","0.1.","base_temperature","(","float",",","optional",")",":","Controling","the","numerical","range","of","contrast","loss",".","Default",":","0.07.","ignore_index","(","int",",","optional",")",":","Specifies","a","target","value","that","is","ignored","and","does","not","contribute","to","the","input","gradient",".","Default","255.","max_samples","(","int",",","optional",")",":","Max","sampling","anchors",".","Default",":","1024.","max_views","(","int",")",":","Sampled","samplers","of","a","class",".","Default",":","100","."]
code: def __init__(
      self,
      temperature=0.1,
      base_temperature=0.07,
      ignore_index=255,
      max_samples=1024,
      max_views=100,
  ):
      super().__init__()
      self.temperature = temperature
      self.base_temperature = base_temperature
      self.ignore_index = ignore_index
      self.max_samples = max_samples
      self.max_views = max_views
  
file_path: PaddleSeg/paddleseg/models/losses/pixel_contrast_cross_entropy_loss.py
imports: import paddle
  import paddle.nn
  import paddle.nn.functional
  from paddleseg.cvlibs import manager
label_desc: Use image node_id 1 to create a new PixelContrastCrossEntropyLoss object from inherited base classes: nn with example: obj = PixelContrastCrossEntropyLoss(temperature, base_temperature, ignore_index, max_samples, max_views)