class_docstr: Box collection.
class_docstr_tok: ["Box","collection","."]
docstr: Convenience function for setting box coordinates.
  
  Args:
    boxes: a tensor of shape [N, 4] representing box corners
  
  Raises:
    ValueError: if invalid dimensions for bbox data
docstr_tok: ["Convenience","function","for","setting","box","coordinates",".","Args",":","boxes",":","a","tensor","of","shape","[","N",",","4","]","representing","box","corners","Raises",":","ValueError",":","if","invalid","dimensions","for","bbox","data"]
code: def set(self, boxes):
      """Convenience function for setting box coordinates.
  
      Args:
        boxes: a tensor of shape [N, 4] representing box corners
  
      Raises:
        ValueError: if invalid dimensions for bbox data
      """
      if len(boxes.get_shape()) != 2 or boxes.get_shape()[-1] != 4:
          raise ValueError("Invalid dimensions for box data.")
      self.data["boxes"] = boxes
  
file_path: DALI/docs/examples/use_cases/tensorflow/efficientdet/pipeline/anchors_utils/box_list.py
imports: import tensorflow.compat.v1
label_desc: Use image node_id 9 for calling the BoxList obj's underlying member method code with example usage: obj.set(boxes) without return types