{"record":{"id":"0e4f5ee44b816cf1","repo":"tensorflow/models","slug":"dtype-r-is-not-supported-0e4f5e","errorCode":null,"errorMessage":"dtype {!r} is not supported!","messagePattern":"dtype (.+?) is not supported!","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/vision/dataloaders/classification_input.py","lineNumber":124,"sourceCode":"        range. The default area range is (0.08, 1.0).\n      https://arxiv.org/abs/2204.07118.\n      center_crop_fraction: center_crop_fraction.\n      tf_resize_method: A `str`, interpolation method for resizing image.\n      three_augment: A bool, whether to apply three augmentations.\n    \"\"\"\n    self._output_size = output_size\n    self._aug_rand_hflip = aug_rand_hflip\n    self._aug_crop = aug_crop\n    self._num_classes = num_classes\n    self._image_field_key = image_field_key\n    if dtype == 'float32':\n      self._dtype = tf.float32\n    elif dtype == 'float16':\n      self._dtype = tf.float16\n    elif dtype == 'bfloat16':\n      self._dtype = tf.bfloat16\n    else:\n      raise ValueError('dtype {!r} is not supported!'.format(dtype))\n    if aug_type:\n      if aug_type.type == 'autoaug':\n        self._augmenter = augment.AutoAugment(\n            augmentation_name=aug_type.autoaug.augmentation_name,\n            cutout_const=aug_type.autoaug.cutout_const,\n            translate_const=aug_type.autoaug.translate_const)\n      elif aug_type.type == 'randaug':\n        self._augmenter = augment.RandAugment(\n            num_layers=aug_type.randaug.num_layers,\n            magnitude=aug_type.randaug.magnitude,\n            cutout_const=aug_type.randaug.cutout_const,\n            translate_const=aug_type.randaug.translate_const,\n            prob_to_apply=aug_type.randaug.prob_to_apply,\n            exclude_ops=aug_type.randaug.exclude_ops)\n      else:\n        raise ValueError('Augmentation policy {} not supported.'.format(\n            aug_type.type))\n    else:","sourceCodeStart":106,"sourceCodeEnd":142,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/vision/dataloaders/classification_input.py#L106-L142","documentation":"Error \"dtype {!r} is not supported!\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/vision/dataloaders/classification_input.py:124 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"}