{"record":{"id":"c6744ce1f5f51b7a","repo":"tensorflow/models","slug":"builder-is-a-property-and-builder-is-the-rese","errorCode":null,"errorMessage":"`BUILDER` is a property and `_BUILDER` is the reserved class attribute. We should only assign `_BUILDER` at the class level.","messagePattern":"`BUILDER` is a property and `_BUILDER` is the reserved class attribute\\. We should only assign `_BUILDER` at the class level\\.","errorType":"exception","errorClass":"AttributeError","httpStatus":null,"severity":"error","filePath":"official/modeling/hyperparams/base_config.py","lineNumber":272,"sourceCode":"    elif not is_null(k) and isinstance(v, self.SEQUENCE_TYPES) and all(\n        [not isinstance(e, self.IMMUTABLE_TYPES) for e in v]):\n      if len(self.__dict__[k]) == len(v):\n        for i in range(len(v)):\n          self.__dict__[k][i].override(v[i])\n      elif not all([isinstance(e, self.IMMUTABLE_TYPES) for e in v]):\n        logging.warning(\n            \"The list/tuple don't match the value dictionaries provided. Thus, \"\n            'the list/tuple is determined by the type annotation and '\n            'values provided. This is error-prone.')\n        self.__dict__[k] = self._import_config(v, subconfig_type)\n      else:\n        self.__dict__[k] = self._import_config(v, subconfig_type)\n    else:\n      self.__dict__[k] = self._import_config(v, subconfig_type)\n\n  def __setattr__(self, k, v):\n    if k == 'BUILDER' or k == '_BUILDER':\n      raise AttributeError('`BUILDER` is a property and `_BUILDER` is the '\n                           'reserved class attribute. We should only assign '\n                           '`_BUILDER` at the class level.')\n\n    if k not in self.RESERVED_ATTR:\n      if getattr(self, '_locked', False):\n        raise ValueError('The Config has been locked. ' 'No change is allowed.')\n    self._set(k, v)\n\n  def _override(self, override_dict, is_strict=True):\n    \"\"\"Overrides same method in ParamsDict.\n\n    Also called by ParamsDict methods.\n\n    Args:\n      override_dict: dictionary to write to .\n      is_strict: If True, not allows to add new keys.\n\n    Raises:","sourceCodeStart":254,"sourceCodeEnd":290,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/modeling/hyperparams/base_config.py#L254-L290","documentation":"Error \"`BUILDER` is a property and `_BUILDER` is the reserved class attribute. We should only assign `_BUILDER` at the class level.\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/modeling/hyperparams/base_config.py:272 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"}