{"record":{"id":"a55c8de68e09edd2","repo":"tensorflow/models","slug":"the-key-does-not-exist","errorCode":null,"errorMessage":"The key `{}` does not exist. ","messagePattern":"The key `(.+?)` does not exist\\. ","errorType":"exception","errorClass":"AttributeError","httpStatus":null,"severity":"error","filePath":"official/modeling/hyperparams/params_dict.py","lineNumber":136,"sourceCode":"      if self._locked:\n        raise ValueError('The ParamsDict has been locked. '\n                         'No change is allowed.')\n    self._set(k, v)\n\n  def __getattr__(self, k):\n    \"\"\"Gets the value of the existing key.\n\n    Args:\n      k: the key string.\n\n    Returns:\n      the value of the key.\n\n    Raises:\n      AttributeError: if k is not defined in the ParamsDict.\n    \"\"\"\n    if k not in self.__dict__.keys():\n      raise AttributeError('The key `{}` does not exist. '.format(k))\n    return self.__dict__[k]\n\n  def __contains__(self, key):\n    \"\"\"Implements the membership test operator.\"\"\"\n    return key in self.__dict__\n\n  def get(self, key, value=None):\n    \"\"\"Accesses through built-in dictionary get method.\"\"\"\n    return self.__dict__.get(key, value)\n\n  def __delattr__(self, k):\n    \"\"\"Deletes the key and removes its values.\n\n    Args:\n      k: the key string.\n\n    Raises:\n      AttributeError: if k is reserverd or not defined in the ParamsDict.","sourceCodeStart":118,"sourceCodeEnd":154,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/modeling/hyperparams/params_dict.py#L118-L154","documentation":"Error \"The key `{}` does not exist. \" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/modeling/hyperparams/params_dict.py:136 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"}