{"record":{"id":"ecf913361e6e7a94","repo":"tensorflow/models","slug":"unsupported-head-type","errorCode":null,"errorMessage":"Unsupported head type: {}","messagePattern":"Unsupported head type: (.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/projects/pointpillars/modeling/heads.py","lineNumber":119,"sourceCode":"        kernel_regularizer=self._config_dict['kernel_regularizer'],\n        bias_initializer=tf.constant_initializer(-np.log((1 - 0.01) / 0.01)))\n    self._box_regressor = tf_keras.layers.Conv2D(\n        filters=(self._config_dict['num_params_per_anchor'] *\n                 self._config_dict['num_anchors_per_location']),\n        kernel_size=3,\n        strides=1,\n        padding='same',\n        kernel_initializer=tf_keras.initializers.RandomNormal(stddev=1e-5),\n        kernel_regularizer=self._config_dict['kernel_regularizer'],\n        bias_initializer=tf.zeros_initializer())\n    if self._config_dict['attribute_heads']:\n      self._att_predictors = {}\n      for att_config in self._config_dict['attribute_heads']:\n        att_name = att_config['name']\n        att_type = att_config['type']\n        att_size = att_config['size']\n        if att_type != 'regression':\n          raise ValueError('Unsupported head type: {}'.format(att_type))\n        self._att_predictors[att_name] = tf_keras.layers.Conv2D(\n            filters=(att_size * self._config_dict['num_anchors_per_location']),\n            kernel_size=3,\n            strides=1,\n            padding='same',\n            kernel_initializer=tf_keras.initializers.RandomNormal(stddev=1e-5),\n            kernel_regularizer=self._config_dict['kernel_regularizer'],\n            bias_initializer=tf.zeros_initializer())\n\n    super(SSDHead, self).build(input_specs)\n\n  def call(\n      self, inputs: Mapping[str, tf.Tensor]\n  ) -> Tuple[Dict[str, Any], Dict[str, Any], Dict[Any, Dict[str, Any]]]:\n    # Build multi level features.\n    feats = {}\n    for level in range(self._decoder_output_level,\n                       self._config_dict['max_level'] + 1):","sourceCodeStart":101,"sourceCodeEnd":137,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/pointpillars/modeling/heads.py#L101-L137","documentation":"Error \"Unsupported head type: {}\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/pointpillars/modeling/heads.py:119 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"}