{"record":{"id":"73d1b7204b5f89f0","repo":"tensorflow/models","slug":"export-module-for-type-params-task-is-not-suppo-73d1b7","errorCode":null,"errorMessage":"Export module for {type(params.task)} is not supported.","messagePattern":"Export module for (.+?) is not supported\\.","errorType":"exception","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"official/projects/qat/vision/serving/export_saved_model.py","lineNumber":114,"sourceCode":"  if _PARAMS_OVERRIDE.value:\n    params = hyperparams.override_params_dict(\n        params, _PARAMS_OVERRIDE.value, is_strict=True)\n\n  params.validate()\n  params.lock()\n\n  input_image_size = [int(x) for x in _INPUT_IMAGE_SIZE.value.split(',')]\n\n  if isinstance(params.task,\n                configs.image_classification.ImageClassificationTask):\n    export_module_cls = export_module.ClassificationModule\n  elif isinstance(params.task, configs.retinanet.RetinaNetTask):\n    export_module_cls = export_module.DetectionModule\n  elif isinstance(params.task,\n                  configs.semantic_segmentation.SemanticSegmentationTask):\n    export_module_cls = export_module.SegmentationModule\n  else:\n    raise TypeError(f'Export module for {type(params.task)} is not supported.')\n\n  module = export_module_cls(\n      params=params,\n      batch_size=_BATCH_SIZE.value,\n      input_image_size=input_image_size,\n      input_type=_IMAGE_TYPE.value,\n      num_channels=3)\n\n  export_saved_model_lib.export_inference_graph(\n      input_type=_IMAGE_TYPE.value,\n      batch_size=_BATCH_SIZE.value,\n      input_image_size=input_image_size,\n      params=params,\n      checkpoint_path=_CHECKPOINT_PATH.value,\n      export_dir=_EXPORT_DIR.value,\n      export_checkpoint_subdir=_EXPORT_CHECKPOINT_SUBDIR.value,\n      export_saved_model_subdir=_EXPORT_SAVED_MODEL_SUBDIR.value,\n      export_module=module,","sourceCodeStart":96,"sourceCodeEnd":132,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/qat/vision/serving/export_saved_model.py#L96-L132","documentation":"Error \"Export module for {type(params.task)} is not supported.\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/qat/vision/serving/export_saved_model.py:114 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"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"}