{"record":{"id":"b943ece718cb84bd","repo":"tensorflow/models","slug":"attribute-head-type-not-supported-b943ec","errorCode":null,"errorMessage":"Attribute head type {} not supported.","messagePattern":"Attribute head type (.+?) not supported\\.","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/vision/modeling/heads/dense_prediction_heads.py","lineNumber":247,"sourceCode":"          'kernel_size': 3,\n          'padding': 'same',\n          'bias_initializer': tf.zeros_initializer(),\n          'bias_regularizer': self._config_dict['bias_regularizer'],\n      }\n      if att_type == 'regression':\n        att_predictor_kwargs.update(\n            {'bias_initializer': tf.zeros_initializer()}\n        )\n      elif att_type == 'classification':\n        att_predictor_kwargs.update(\n            {\n                'bias_initializer': tf.constant_initializer(\n                    -np.log((1 - 0.01) / 0.01)\n                )\n            }\n        )\n      else:\n        raise ValueError(\n            'Attribute head type {} not supported.'.format(att_type)\n        )\n\n      if (\n          att_prediction_tower_name\n          and self._config_dict['share_classification_heads']\n      ):\n        raise ValueError(\n            'share_classification_heads cannot be set as True when'\n            ' att_prediction_tower_name is specified.'\n        )\n\n      if not self._config_dict['use_separable_conv']:\n        att_predictor_kwargs.update({\n            'kernel_initializer': tf_keras.initializers.RandomNormal(\n                stddev=1e-5\n            ),\n            'kernel_regularizer': self._config_dict['kernel_regularizer'],","sourceCodeStart":229,"sourceCodeEnd":265,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/vision/modeling/heads/dense_prediction_heads.py#L229-L265","documentation":"Error \"Attribute head type {} not supported.\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/vision/modeling/heads/dense_prediction_heads.py:247 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a supported attribute head type (e.g. 'regression' or 'classification') in the dense prediction head config.","Check the attribute head 'type' field for typos."],"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"}