tensorflow/models · error · ValueError

Export module not implemented for {} task.

Error message

Export module not implemented for {} task.

What it means

Error "Export module not implemented for {} task." thrown in tensorflow/models.

Source

Thrown at official/projects/yolo/serving/export_module_factory.py:262

                      input_type: str,
                      batch_size: Optional[int],
                      input_image_size: List[int],
                      num_channels: int = 3,
                      input_name: Optional[str] = None) -> ExportModule:
  """Factory for export modules."""
  if isinstance(params.task,
                darknet_classification.ImageClassificationTask):
    export_module = create_classification_export_module(params, input_type,
                                                        batch_size,  # pyrefly: ignore[bad-argument-type]
                                                        input_image_size,
                                                        num_channels,
                                                        input_name)
  elif isinstance(params.task, (yolo.YoloTask, yolov7.YoloV7Task)):
    export_module = create_yolo_export_module(params, input_type, batch_size,  # pyrefly: ignore[bad-argument-type]
                                              input_image_size, num_channels,
                                              input_name)
  else:
    raise ValueError('Export module not implemented for {} task.'.format(
        type(params.task)))
  return export_module

View on GitHub (pinned to e006f5f0d5)

When it happens

Trigger: Thrown at official/projects/yolo/serving/export_module_factory.py:262 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/059ad7fab63e5c86. Report an issue: GitHub.