tensorflow/models · error · ValueError
Unrecognized input_type
Error message
Unrecognized input_type: {} What it means
Raised in get_inference_signatures when an input_type key other than 'tensors' is encountered in function_keys. The exporter only supports tensor-based inference signatures.
Solutions
- Use only 'tensors' as the input_type key in function_keys
- Fix typos in the signature key mapping
- Add a branch for other input types (e.g. serialized examples) if needed
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at official/projects/pointpillars/utils/model_exporter.py:254 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/b6982c3187be5b89.
Report an issue: GitHub.
Appendix: source
Thrown at official/projects/pointpillars/utils/model_exporter.py:254
"""
signatures = {}
for input_type, name in function_keys.items():
if input_type == 'tensors':
pillars = tf.TensorSpec(
shape=self._pillars_spec.shape,
dtype=self._pillars_spec.dtype,
name='pillars'
)
indices = tf.TensorSpec(
shape=self._indices_spec.shape,
dtype=self._indices_spec.dtype,
name='indices'
)
signatures[
name] = self.inference_from_tensors.get_concrete_function(
pillars, indices)
else:
raise ValueError('Unrecognized input_type: {}'.format(input_type))
return signatures
View on GitHub (pinned to e006f5f0d5)