original_docstring: 
      Find the intersection of every box combination between two sets of boxes that are in boundary coordinates.
  
      :param set_1: set 1, a tensor of dimensions (n1, 4)
      :param set_2: set 2, a tensor of dimensions (n2, 4)
      :return: intersection of each of the boxes in set 1 with respect to each of the boxes in set 2, a tensor of dimensions (n1, n2)
      
docstring: Find the intersection of every box combination between two sets of boxes that are in boundary coordinates.
docstring_tokens: Find the intersection of every box combination between two sets of boxes that are in boundary coordinates .
code: def find_intersection(set_1, set_2):
      """
      Find the intersection of every box combination between two sets of boxes that are in boundary coordinates.
  
      :param set_1: set 1, a tensor of dimensions (n1, 4)
      :param set_2: set 2, a tensor of dimensions (n2, 4)
      :return: intersection of each of the boxes in set 1 with respect to each of the boxes in set 2, a tensor of dimensions (n1, n2)
      """
  
      # PyTorch auto-broadcasts singleton dimensions
      lower_bounds = torch.max(set_1[:, :2].unsqueeze(1), set_2[:, :2].unsqueeze(0))  # (n1, n2, 2)
      upper_bounds = torch.min(set_1[:, 2:].unsqueeze(1), set_2[:, 2:].unsqueeze(0))  # (n1, n2, 2)
      intersection_dims = torch.clamp(upper_bounds - lower_bounds, min=0)  # (n1, n2, 2)
      return intersection_dims[:, :, 0] * intersection_dims[:, :, 1]
code_tokens: def find_intersection ( set_1 , set_2 ) : lower_bounds = torch . max ( set_1 [ : , : 2 ] . unsqueeze ( 1 ) , set_2 [ : , : 2 ] . unsqueeze ( 0 ) ) upper_bounds = torch . min ( set_1 [ : , 2 : ] . unsqueeze ( 1 ) , set_2 [ : , 2 : ] . unsqueeze ( 0 ) ) intersection_dims = torch . clamp ( upper_bounds - lower_bounds , min = 0 ) return intersection_dims [ : , : , 0 ] * intersection_dims [ : , : , 1 ]
short_docstring: Find the intersection of every box combination between two sets of boxes that are in boundary coordinates.
short_docstring_tokens: Find the intersection of every box combination between two sets of boxes that are in boundary coordinates .
comment: """
      Find the intersection of every box combination between two sets of boxes that are in boundary coordinates.
  
      :param set_1: set 1, a tensor of dimensions (n1, 4)
      :param set_2: set 2, a tensor of dimensions (n2, 4)
      :return: intersection of each of the boxes in set 1 with respect to each of the boxes in set 2, a tensor of dimensions (n1, n2)
      """$SEP$# PyTorch auto-broadcasts singleton dimensions$SEP$# (n1, n2, 2)$SEP$# (n1, n2, 2)$SEP$# (n1, n2, 2)