tensorflow/models · error · ValueError
It is unexpected that `tfds_builder` is None and there is al
Error message
It is unexpected that `tfds_builder` is None and there is also no `files`.
What it means
Error "It is unexpected that `tfds_builder` is None and there is also no `files`." thrown in tensorflow/models.
Source
Thrown at official/core/input_reader.py:418
files,
dataset_fn,
input_context,
seed=self._seed,
is_training=self._is_training,
sharding=self._sharding,
cache=self._cache,
cycle_length=self._cycle_length,
block_length=self._block_length,
deterministic=self._deterministic)
elif len(files) == 1:
return _read_files_then_shard(
files,
dataset_fn,
input_context,
sharding=self._sharding,
repeat=self._is_training and not self._cache)
else:
raise ValueError('It is unexpected that `tfds_builder` is None and '
'there is also no `files`.')
if self._tfds_name:
if isinstance(self._tfds_name, cfg.base_config.Config):
dataset = {}
for k, tfds_name in self._tfds_name.as_dict().items():
dataset[k] = _read_tfds(
tfds_name=tfds_name,
tfds_data_dir=self._tfds_data_dir,
tfds_split=self._tfds_split,
tfds_skip_decoding_feature=self._tfds_skip_decoding_feature,
tfds_as_supervised=self._tfds_as_supervised,
input_context=input_context,
seed=self._seed,
is_training=self._is_training,
cache=self._cache,
cycle_length=self._cycle_length,
block_length=self._block_length)View on GitHub (pinned to e006f5f0d5)
When it happens
Trigger: Thrown at official/core/input_reader.py:418 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/4db6c40e5641df4f.
Report an issue: GitHub.