{"record":{"id":"23f55145292001f4","repo":"tensorflow/models","slug":"export-module-not-implemented-for-task-23f551","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_saved_model_lib.py","lineNumber":145,"sourceCode":"          batch_size=batch_size,\n          input_image_size=input_image_size,\n          input_type=input_type,\n          num_channels=num_channels,\n          input_name=input_name,\n      )\n    elif isinstance(\n        params.task, configs.video_classification.VideoClassificationTask\n    ):\n      export_module = video_classification.VideoClassificationModule(\n          params=params,\n          batch_size=batch_size,\n          input_image_size=input_image_size,\n          input_type=input_type,\n          num_channels=num_channels,\n          input_name=input_name,\n      )\n    else:\n      raise ValueError(\n          'Export module not implemented for {} task.'.format(type(params.task))\n      )\n\n  if add_tpu_function_alias:\n    if input_type == 'image_tensor':\n      inference_func = export_module.inference_from_image_tensors\n    elif input_type == 'image_bytes':\n      inference_func = export_module.inference_from_image_bytes\n    elif input_type == 'tf_example':\n      inference_func = export_module.inference_from_tf_example\n    else:\n      raise ValueError(\n          'add_tpu_function_alias is only allowed for input_type of:'\n          ' image_tensor, image_bytes, tf_example.'\n      )\n    save_options = tf.saved_model.SaveOptions(\n        function_aliases={\n            'tpu_candidate': inference_func,","sourceCodeStart":127,"sourceCodeEnd":163,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/vision/serving/export_saved_model_lib.py#L127-L163","documentation":"Error \"Export module not implemented for {} task.\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/vision/serving/export_saved_model_lib.py:145 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a supported task for SavedModel export (e.g. 'classification', 'detection', 'segmentation').","Register an export module for your custom task."],"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"}