tensorflow/models · error
Unsupported datatype used in parser only {float16, bfloat16,
Error message
Unsupported datatype used in parser only {float16, bfloat16, or float32} What it means
Error "Unsupported datatype used in parser only {float16, bfloat16, or float32}" thrown in tensorflow/models.
Source
Thrown at official/projects/centernet/dataloaders/centernet_input.py:98
Raises:
Exception: if datatype is not supported.
"""
self._output_width = output_width
self._output_height = output_height
self._max_num_instances = max_num_instances
self._bgr_ordering = bgr_ordering
self._channel_means = channel_means
self._channel_stds = channel_stds
if dtype == 'float16':
self._dtype = tf.float16
elif dtype == 'bfloat16':
self._dtype = tf.bfloat16
elif dtype == 'float32':
self._dtype = tf.float32
else:
raise Exception(
'Unsupported datatype used in parser only '
'{float16, bfloat16, or float32}')
# Data augmentation.
self._aug_rand_hflip = aug_rand_hflip
self._aug_scale_min = aug_scale_min
self._aug_scale_max = aug_scale_max
self._aug_rand_saturation = aug_rand_saturation
self._aug_rand_brightness = aug_rand_brightness
self._aug_rand_hue = aug_rand_hue
self._aug_rand_contrast = aug_rand_contrast
self._odapi_augmentation = odapi_augmentation
def _build_label(self,
boxes,
classes,
image_info,
unpad_image_shape,View on GitHub (pinned to e006f5f0d5)
When it happens
Trigger: Thrown at official/projects/centernet/dataloaders/centernet_input.py:98 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/bc89e1be9cf9122c.
Report an issue: GitHub.