{"record":{"id":"896cfc8589bfe831","repo":"tensorflow/models","slug":"at-most-one-of-input-path-and-tfds-name-can-be","errorCode":null,"errorMessage":"At most one of `input_path` and `tfds_name` can be specified, but got %s and %s.","messagePattern":"At most one of `input_path` and `tfds_name` can be specified, but got (.+?) and (.+?)\\.","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/core/input_reader.py","lineNumber":267,"sourceCode":"      sample_fn: An optional `callable` that takes a `tf.data.Dataset` object as\n        input and outputs the transformed dataset. It performs sampling on the\n        decoded raw tensors dict before the parser_fn.\n      parser_fn: An optional `callable` that takes the decoded raw tensors dict\n        and parse them into a dictionary of tensors that can be consumed by the\n        model. It will be executed after decoder_fn.\n      filter_fn: An optional `callable` mapping a dataset element to a boolean.\n        It will be executed after parser_fn.\n      transform_and_batch_fn: An optional `callable` that takes a\n        `tf.data.Dataset` object and an optional `tf.distribute.InputContext` as\n        input, and returns a `tf.data.Dataset` object. It will be executed after\n        `parser_fn` to transform and batch the dataset; if None, after\n        `parser_fn` is executed, the dataset will be batched into per-replica\n        batch size.\n      postprocess_fn: A optional `callable` that processes batched tensors. It\n        will be executed after batching.\n    \"\"\"\n    if params.input_path and params.tfds_name:\n      raise ValueError('At most one of `input_path` and `tfds_name` can be '\n                       'specified, but got %s and %s.' %\n                       (params.input_path, params.tfds_name))\n\n    if (isinstance(params.input_path, cfg.base_config.Config) or\n        isinstance(params.tfds_name, cfg.base_config.Config)\n        ) and combine_fn is None:\n      raise ValueError(\n          'A combine_fn is required if `input_path` or `tfds_name` is a dict.')\n\n    self._tfds_name = params.tfds_name\n    self._tfds_data_dir = params.tfds_data_dir\n    self._matched_files = None\n    if not params.input_path:\n      # Read dataset from TFDS.\n      if not params.tfds_split:\n        raise ValueError(\n            '`tfds_name` is %s, but `tfds_split` is not specified.' %\n            params.tfds_name)","sourceCodeStart":249,"sourceCodeEnd":285,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/core/input_reader.py#L249-L285","documentation":"Error \"At most one of `input_path` and `tfds_name` can be specified, but got %s and %s.\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/core/input_reader.py:267 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"}