{"record":{"id":"b62ac776d6a58040","repo":"tensorflow/models","slug":"export-module-not-implemented-for-task-b62ac7","errorCode":null,"errorMessage":"Export module not implemented for {} task.","messagePattern":"Export module not implemented for (.+?) task\\.","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/vision/serving/export_module_factory.py","lineNumber":87,"sourceCode":"                                           model=model,\n                                           input_signature=input_signature,\n                                           preprocessor=preprocess_fn,\n                                           postprocessor=postprocess_fn)\n  return export_module\n\n\ndef get_export_module(params: cfg.ExperimentConfig,\n                      input_type: str,\n                      batch_size: Optional[int],\n                      input_image_size: List[int],\n                      num_channels: int = 3) -> export_base.ExportModule:\n  \"\"\"Factory for export modules.\"\"\"\n  if isinstance(params.task,\n                configs.image_classification.ImageClassificationTask):\n    export_module = create_classification_export_module(\n        params, input_type, batch_size, input_image_size, num_channels)\n  else:\n    raise ValueError('Export module not implemented for {} task.'.format(\n        type(params.task)))\n  return export_module\n","sourceCodeStart":69,"sourceCodeEnd":90,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/vision/serving/export_module_factory.py#L69-L90","documentation":"Error \"Export module not implemented for {} task.\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/vision/serving/export_module_factory.py:87 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a supported task for export (e.g. 'classification', 'detection', 'segmentation').","Register an export module for your custom task in the factory."],"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"}