tensorflow/models · error · ValueError
The {name} argument must be a tuple of {n} integers. Receive
Error message
The {name} argument must be a tuple of {n} integers. Received: {value} including element {single_value} of type {type(single_value)}. What it means
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.
Source
Thrown at official/vision/ops/augment.py:184
return (value,) * n
else:
try:
value_tuple = tuple(value)
except TypeError as exc:
raise TypeError(
f'The {name} argument must be a tuple of {n} integers. '
f'Received: {value}'
) from exc
if len(value_tuple) != n:
raise ValueError(
f'The {name} argument must be a tuple of {n} integers. '
f'Received: {value}'
)
for single_value in value_tuple:
try:
int(single_value)
except (ValueError, TypeError) as exc:
raise ValueError(
f'The {name} argument must be a tuple of {n} integers. Received:'
f' {value} including element {single_value} of type'
f' {type(single_value)}.'
) from exc
return value_tuple
def gaussian_filter2d(
image: tf.Tensor,
filter_shape: Union[List[int], Tuple[int, ...], int],
sigma: Union[List[float], Tuple[float, float], float] = 1.0,
padding: str = 'REFLECT',
constant_values: Union[int, tf.Tensor] = 0,
name: Optional[str] = None,
) -> tf.Tensor:
"""Performs Gaussian blur on image(s).
Args:View on GitHub (pinned to e006f5f0d5)
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.
When it happens
Trigger: Thrown at official/vision/ops/augment.py:184 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of tensorflow/models@e006f5f0d5 (2026-08-24).
Data as JSON: /api/errors/4a11800649eda315.
Report an issue: GitHub.