{"record":{"id":"6dd5f4d6e2330262","repo":"tensorflow/models","slug":"boxlist-must-contain-all-specified-fields","errorCode":null,"errorMessage":"boxlist must contain all specified fields","messagePattern":"boxlist must contain all specified fields","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"official/projects/centernet/ops/box_list.py","lineNumber":213,"sourceCode":"  def as_tensor_dict(self, fields=None):\n    \"\"\"Retrieves specified fields as a dictionary of tensors.\n\n    Args:\n      fields: (optional) list of fields to return in the dictionary.\n        If None (default), all fields are returned.\n\n    Returns:\n      tensor_dict: A dictionary of tensors specified by fields.\n\n    Raises:\n      ValueError: if specified field is not contained in boxlist.\n    \"\"\"\n    tensor_dict = {}\n    if fields is None:\n      fields = self.get_all_fields()\n    for field in fields:\n      if not self.has_field(field):\n        raise ValueError('boxlist must contain all specified fields')\n      tensor_dict[field] = self.get_field(field)\n    return tensor_dict\n","sourceCodeStart":195,"sourceCodeEnd":216,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/centernet/ops/box_list.py#L195-L216","documentation":"Error \"boxlist must contain all specified fields\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/centernet/ops/box_list.py:213 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"}