{"record":{"id":"4a11800649eda315","repo":"tensorflow/models","slug":"the-name-argument-must-be-a-tuple-of-n-integer-4a1180","errorCode":null,"errorMessage":"The {name} argument must be a tuple of {n} integers. Received: {value} including element {single_value} of type {type(single_value)}.","messagePattern":"The (.+?) argument must be a tuple of (.+?) integers\\. Received: (.+?) including element (.+?) of type (.+?)\\.","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/vision/ops/augment.py","lineNumber":184,"sourceCode":"    return (value,) * n\n  else:\n    try:\n      value_tuple = tuple(value)\n    except TypeError as exc:\n      raise TypeError(\n          f'The {name} argument must be a tuple of {n} integers. '\n          f'Received: {value}'\n      ) from exc\n    if len(value_tuple) != n:\n      raise ValueError(\n          f'The {name} argument must be a tuple of {n} integers. '\n          f'Received: {value}'\n      )\n    for single_value in value_tuple:\n      try:\n        int(single_value)\n      except (ValueError, TypeError) as exc:\n        raise ValueError(\n            f'The {name} argument must be a tuple of {n} integers. Received:'\n            f' {value} including element {single_value} of type'\n            f' {type(single_value)}.'\n        ) from exc\n    return value_tuple\n\n\ndef gaussian_filter2d(\n    image: tf.Tensor,\n    filter_shape: Union[List[int], Tuple[int, ...], int],\n    sigma: Union[List[float], Tuple[float, float], float] = 1.0,\n    padding: str = 'REFLECT',\n    constant_values: Union[int, tf.Tensor] = 0,\n    name: Optional[str] = None,\n) -> tf.Tensor:\n  \"\"\"Performs Gaussian blur on image(s).\n\n  Args:","sourceCodeStart":166,"sourceCodeEnd":202,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/vision/ops/augment.py#L166-L202","documentation":"Error \"The {name} argument must be a tuple of {n} integers. Received: {value} including element {single_value} of type {type(single_value)}.\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/vision/ops/augment.py:184 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass the argument as a tuple of n integers; the reported element has the wrong type.","Cast float or string elements to int before passing."],"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"}