{"record":{"id":"542709408dc2a44b","repo":"tensorflow/models","slug":"export-path-is-not-specified-s-542709","errorCode":null,"errorMessage":"Export path is not specified: %s","messagePattern":"Export path is not specified: (.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/legacy/bert/run_squad_helper.py","lineNumber":465,"sourceCode":"                                                scores_diff_json)\n  else:\n    eval_metrics = squad_evaluate_v1_1.evaluate(pred_dataset, all_predictions)\n  return eval_metrics\n\n\ndef export_squad(model_export_path, input_meta_data, bert_config):\n  \"\"\"Exports a trained model as a `SavedModel` for inference.\n\n  Args:\n    model_export_path: a string specifying the path to the SavedModel directory.\n    input_meta_data: dictionary containing meta data about input and model.\n    bert_config: Bert configuration file to define core bert layers.\n\n  Raises:\n    Export path is not specified, got an empty string or None.\n  \"\"\"\n  if not model_export_path:\n    raise ValueError('Export path is not specified: %s' % model_export_path)\n  # Export uses float32 for now, even if training uses mixed precision.\n  tf_keras.mixed_precision.set_global_policy('float32')\n  squad_model, _ = bert_models.squad_model(bert_config,\n                                           input_meta_data['max_seq_length'])\n  model_saving_utils.export_bert_model(\n      model_export_path, model=squad_model, checkpoint_dir=FLAGS.model_dir)\n","sourceCodeStart":447,"sourceCodeEnd":472,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/legacy/bert/run_squad_helper.py#L447-L472","documentation":"Error \"Export path is not specified: %s\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/legacy/bert/run_squad_helper.py:465 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"}