class_docstr: Abstract base class for region similarity calculator.
class_docstr_tok: ["Abstract","base","class","for","region","similarity","calculator","."]
docstr: Computes matrix of pairwise similarity between BoxLists.
  
  This op (to be overridden) computes a measure of pairwise similarity between
  the boxes in the given BoxLists. Higher values indicate more similarity.
  
  Note that this method simply measures similarity and does not explicitly
  perform a matching.
  
  Args:
    boxlist1: BoxList holding N boxes.
    boxlist2: BoxList holding M boxes.
    scope: Op scope name. Defaults to 'Compare' if None.
  
  Returns:
    a (float32) tensor of shape [N, M] with pairwise similarity score.
docstr_tok: ["Computes","matrix","of","pairwise","similarity","between","BoxLists",".","This","op","(","to","be","overridden",")","computes","a","measure","of","pairwise","similarity","between","the","boxes","in","the","given","BoxLists",".","Higher","values","indicate","more","similarity",".","Note","that","this","method","simply","measures","similarity","and","does","not","explicitly","perform","a","matching",".","Args",":","boxlist1",":","BoxList","holding","N","boxes",".","boxlist2",":","BoxList","holding","M","boxes",".","scope",":","Op","scope","name",".","Defaults","to","'Compare","'","if","None",".","Returns",":","a","(","float32",")","tensor","of","shape","[","N",",","M","]","with","pairwise","similarity","score","."]
code: def compare(self, boxlist1, boxlist2, scope=None):
      """Computes matrix of pairwise similarity between BoxLists.
  
      This op (to be overridden) computes a measure of pairwise similarity between
      the boxes in the given BoxLists. Higher values indicate more similarity.
  
      Note that this method simply measures similarity and does not explicitly
      perform a matching.
  
      Args:
        boxlist1: BoxList holding N boxes.
        boxlist2: BoxList holding M boxes.
        scope: Op scope name. Defaults to 'Compare' if None.
  
      Returns:
        a (float32) tensor of shape [N, M] with pairwise similarity score.
      """
      with tf.name_scope(
          scope, "Compare", [boxlist1, boxlist2]
      ) as scope:
          return self._compare(boxlist1, boxlist2)
  
file_path: DALI/docs/examples/use_cases/tensorflow/efficientdet/pipeline/anchors_utils/region_similarity_calculator.py
imports: from abc import ABCMeta
  from abc import abstractmethod
  import tensorflow.compat.v1
label_desc: Use image node_id 1 for calling the RegionSimilarityCalculator obj's underlying member method code with example usage: obj.compare(boxlist1, boxlist2, scope) and returns: self