{"record":{"id":"2c09c3ed2f4d32b4","repo":"tensorflow/models","slug":"unknown-builder-type","errorCode":null,"errorMessage":"Unknown builder type {}","messagePattern":"Unknown builder type (.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/legacy/image_classification/dataset_factory.py","lineNumber":326,"sourceCode":"    \"\"\"Construct a dataset end-to-end and return it.\n\n    Args:\n      input_context: An optional context provided by `tf.distribute` for\n        cross-replica training.\n\n    Returns:\n      A TensorFlow dataset outputting batched images and labels.\n    \"\"\"\n    builders = {\n        'tfds': self.load_tfds,\n        'records': self.load_records,\n        'synthetic': self.load_synthetic,\n    }\n\n    builder = builders.get(self.config.builder, None)\n\n    if builder is None:\n      raise ValueError('Unknown builder type {}'.format(self.config.builder))\n\n    self.input_context = input_context\n    dataset = builder()\n    dataset = self.pipeline(dataset)\n\n    return dataset\n\n  def load_tfds(self) -> tf.data.Dataset:\n    \"\"\"Return a dataset loading files from TFDS.\"\"\"\n\n    logging.info('Using TFDS to load data.')\n    builder = tfds.builder(self.config.name, data_dir=self.config.data_dir)\n\n    if self.config.download:\n      builder.download_and_prepare()\n\n    decoders = {}\n","sourceCodeStart":308,"sourceCodeEnd":344,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/legacy/image_classification/dataset_factory.py#L308-L344","documentation":"Error \"Unknown builder type {}\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/legacy/image_classification/dataset_factory.py:326 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"}