{"record":{"id":"46cecbe733c3c910","repo":"tensorflow/models","slug":"only-bifpn-config-is-supported-46cecb","errorCode":null,"errorMessage":"Only bifpn config is supported","messagePattern":"Only bifpn config is supported","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/projects/edgetpu/vision/modeling/heads/bifpn_head.py","lineNumber":589,"sourceCode":"               max_level=7,\n               fpn_num_filters=80,\n               apply_bn_for_resampling=True,\n               is_training_bn=True,\n               conv_after_downsample=True,\n               conv_bn_act_pattern=True,\n               conv_type='sep_3',\n               act_type='swish',\n               strategy='tpu',\n               fpn_weight_method='sum',\n               data_format='channels_last',\n               pooling_type='avg',\n               upsampling_type='bilinear',\n               fpn_name='bifpn',\n               name='fpn_cell',\n               **kwargs):\n    super(FPNCell, self).__init__(**kwargs)\n    if fpn_name != 'bifpn':\n      raise ValueError('Only bifpn config is supported')\n    self.fpn_config = bifpn_config(min_level, max_level)\n    self.fnodes = []\n    for i, fnode_cfg in enumerate(self.fpn_config['nodes']):\n      logging.info('fnode %d : %s', i, fnode_cfg)\n      fnode = FNode(\n          fnode_cfg['feat_level'] - min_level,\n          fnode_cfg['inputs_offsets'],\n          fpn_num_filters=fpn_num_filters,\n          apply_bn_for_resampling=apply_bn_for_resampling,\n          is_training_bn=is_training_bn,\n          conv_after_downsample=conv_after_downsample,\n          conv_bn_act_pattern=conv_bn_act_pattern,\n          conv_type=conv_type,\n          act_type=act_type,\n          strategy=strategy,\n          weight_method=fpn_weight_method,\n          data_format=data_format,\n          pooling_type=pooling_type,","sourceCodeStart":571,"sourceCodeEnd":607,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/edgetpu/vision/modeling/heads/bifpn_head.py#L571-L607","documentation":"Error \"Only bifpn config is supported\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/edgetpu/vision/modeling/heads/bifpn_head.py:589 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"}