{"record":{"id":"fbd23eb951358714","repo":"tensorflow/models","slug":"the-key-is-reserved-no-change-is-allowes","errorCode":null,"errorMessage":"The key `{}` is reserved. No change is allowes. ","messagePattern":"The key `(.+?)` is reserved\\. No change is allowes\\. ","errorType":"exception","errorClass":"AttributeError","httpStatus":null,"severity":"error","filePath":"official/modeling/hyperparams/params_dict.py","lineNumber":158,"sourceCode":"    \"\"\"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.\n      ValueError: if the ParamsDict instance has been locked.\n    \"\"\"\n    if k in ParamsDict.RESERVED_ATTR:\n      raise AttributeError(\n          'The key `{}` is reserved. No change is allowes. '.format(k))\n    if k not in self.__dict__.keys():\n      raise AttributeError('The key `{}` does not exist. '.format(k))\n    if self._locked:\n      raise ValueError('The ParamsDict has been locked. No change is allowed.')\n    del self.__dict__[k]\n\n  def override(self, override_params, is_strict=True):\n    \"\"\"Override the ParamsDict with a set of given params.\n\n    Args:\n      override_params: a dict or a ParamsDict specifying the parameters to be\n        overridden.\n      is_strict: a boolean specifying whether override is strict or not. If\n        True, keys in `override_params` must be present in the ParamsDict. If\n        False, keys in `override_params` can be different from what is currently\n        defined in the ParamsDict. In this case, the ParamsDict will be extended\n        to include the new keys.","sourceCodeStart":140,"sourceCodeEnd":176,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/modeling/hyperparams/params_dict.py#L140-L176","documentation":"Error \"The key `{}` is reserved. No change is allowes. \" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/modeling/hyperparams/params_dict.py:158 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"}