{"record":{"id":"d503d498fd0eda66","repo":"tensorflow/models","slug":"the-mode-is-not-implemented-s-d503d4","errorCode":null,"errorMessage":"The mode is not implemented: %s","messagePattern":"The mode is not implemented: (.+?)","errorType":"exception","errorClass":"NotImplementedError","httpStatus":null,"severity":"error","filePath":"official/modeling/fast_training/progressive/train_lib.py","lineNumber":118,"sourceCode":"      controller.train_and_evaluate(\n          train_steps=params.trainer.train_steps,\n          eval_steps=params.trainer.validation_steps,\n          eval_interval=params.trainer.validation_interval)\n    elif mode == 'eval':\n      controller.evaluate(steps=params.trainer.validation_steps)\n    elif mode == 'continuous_eval':\n\n      def timeout_fn():\n        if trainer.global_step.numpy() >= params.trainer.train_steps:\n          return True\n        return False\n\n      controller.evaluate_continuously(\n          steps=params.trainer.validation_steps,\n          timeout=params.trainer.continuous_eval_timeout,\n          timeout_fn=timeout_fn)\n    else:\n      raise NotImplementedError('The mode is not implemented: %s' % mode)\n\n  if run_post_eval:\n    with distribution_strategy.scope():\n      return trainer.model, trainer.evaluate(\n          tf.convert_to_tensor(params.trainer.validation_steps))\n  else:\n    return trainer.model, {}\n","sourceCodeStart":100,"sourceCodeEnd":126,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/modeling/fast_training/progressive/train_lib.py#L100-L126","documentation":"Mode dispatch guard in progressive training's run_experiment: mode matched none of the implemented branches (train_and_eval, eval, continuous_eval, train), so the experiment runner has no execution path for it.","triggerScenarios":"Thrown at official/modeling/fast_training/progressive/train_lib.py:118 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set mode to a supported value such as 'train_and_eval' or 'eval'","Check the mode field in the experiment params for typos"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e006f5f0d534913e49c1f1dae87364039fa607e2","analyzedAt":"2026-08-24T14:09:15.576Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}