{"record":{"id":"df0448d1526e35a0","repo":"tensorflow/models","slug":"invalid-dimensions-for-box-data-df0448","errorCode":null,"errorMessage":"Invalid dimensions for box data.","messagePattern":"Invalid dimensions for box data\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"official/projects/centernet/ops/box_list.py","lineNumber":134,"sourceCode":"  def get(self):\n    \"\"\"Convenience function for accessing box coordinates.\n\n    Returns:\n      a tensor with shape [N, 4] representing box coordinates.\n    \"\"\"\n    return self.get_field('boxes')\n\n  def set(self, boxes):\n    \"\"\"Convenience function for setting box coordinates.\n\n    Args:\n      boxes: a tensor of shape [N, 4] representing box corners\n\n    Raises:\n      ValueError: if invalid dimensions for bbox data\n    \"\"\"\n    if len(boxes.get_shape()) != 2 or boxes.get_shape()[-1] != 4:\n      raise ValueError('Invalid dimensions for box data.')\n    self.data['boxes'] = boxes\n\n  def get_field(self, field):\n    \"\"\"Accesses a box collection and associated fields.\n\n    This function returns specified field with object; if no field is specified,\n    it returns the box coordinates.\n\n    Args:\n      field: this optional string parameter can be used to specify\n        a related field to be accessed.\n\n    Returns:\n      a tensor representing the box collection or an associated field.\n\n    Raises:\n      ValueError: if invalid field\n    \"\"\"","sourceCodeStart":116,"sourceCodeEnd":152,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/centernet/ops/box_list.py#L116-L152","documentation":"Error \"Invalid dimensions for box data.\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/centernet/ops/box_list.py:134 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e006f5f0d534913e49c1f1dae87364039fa607e2","analyzedAt":"2026-08-24T14:09:15.576Z","schemaVersion":2},"datasetVersion":"2026-08-24T17:17:21.512Z"}