{"record":{"id":"444efdfcf2739371","repo":"tensorflow/models","slug":"unequal-first-dimension","errorCode":null,"errorMessage":"Unequal first dimension {}, {}","messagePattern":"Unequal first dimension (.+?), (.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/projects/videoglue/datasets/common/utils.py","lineNumber":121,"sourceCode":"    mismatch.\n\n    If the shapes are dynamic, raises a tf InvalidArgumentError when the shapes\n    mismatch.\n\n    Args:\n      shape_a: a list containing shape of the first tensor.\n      shape_b: a list containing shape of the second tensor.\n\n    Returns:\n      Either a tf.no_op() when shapes are all static and a tf.assert_equal() op\n      when the shapes are dynamic.\n\n    Raises:\n      ValueError: When shapes are both static and unequal.\n    \"\"\"\n    if isinstance(shape_a[0], int) and isinstance(shape_b[0], int):\n      if shape_a[0] != shape_b[0]:\n        raise ValueError('Unequal first dimension {}, {}'.format(\n            shape_a[0], shape_b[0]))\n      else: return tf.no_op()\n    else:\n      return tf.assert_equal(shape_a[0], shape_b[0])\n\n  def _assert_box_normalized(boxes, maximum_normalized_coordinate=1.1):\n    \"\"\"Asserts the input box tensor is normalized.\n\n    Args:\n      boxes: a tensor of shape [N, 4] where N is the number of boxes.\n      maximum_normalized_coordinate: Maximum coordinate value to be considered\n        as normalized, default to 1.1.\n\n    Returns:\n      a tf.Assert op which fails when the input box tensor is not normalized.\n\n    Raises:\n      ValueError: When the input box tensor is not normalized.","sourceCodeStart":103,"sourceCodeEnd":139,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/videoglue/datasets/common/utils.py#L103-L139","documentation":"Error \"Unequal first dimension {}, {}\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/videoglue/datasets/common/utils.py:121 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"}