{"record":{"id":"4c24dd143f631061","repo":"tensorflow/models","slug":"unknown-conv-type","errorCode":null,"errorMessage":"Unknown conv type: {}","messagePattern":"Unknown conv type: (.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/projects/edgetpu/vision/modeling/heads/bifpn_head.py","lineNumber":149,"sourceCode":"    })\n    node_ids[i].append(next(id_cnt))\n\n  return p\n\n\ndef get_conv_op(conv_type):\n  \"\"\"Gets convlution op.\"\"\"\n  kernel_size = int(conv_type.split('_')[-1])\n  if conv_type.startswith('sep'):\n    conv_op = functools.partial(\n        tf_keras.layers.SeparableConv2D,\n        depth_multiplier=1,\n        kernel_size=(kernel_size, kernel_size))\n  elif conv_type.startswith('conv'):\n    conv_op = functools.partial(\n        tf_keras.layers.Conv2D, kernel_size=(kernel_size, kernel_size))\n  else:\n    raise ValueError('Unknown conv type: {}'.format(conv_type))\n  return conv_op\n\n\ndef add_n(nodes):\n  \"\"\"A customized add_n to add up a list of tensors.\"\"\"\n  # tf.add_n is not supported by EdgeTPU, while tf.reduce_sum is not supported\n  # by GPU and runs slow on EdgeTPU because of the 5-dimension op.\n  with tf.name_scope('add_n'):\n    new_node = nodes[0]\n    for n in nodes[1:]:\n      new_node = new_node + n\n    return new_node\n\n\ndef resize_nearest_neighbor(data, height_scale, width_scale):\n  \"\"\"Nearest neighbor upsampling implementation.\"\"\"\n  with tf.name_scope('nearest_upsampling'):\n    bs, h, w, c = data.get_shape().as_list()","sourceCodeStart":131,"sourceCodeEnd":167,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/edgetpu/vision/modeling/heads/bifpn_head.py#L131-L167","documentation":"Error \"Unknown conv type: {}\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/edgetpu/vision/modeling/heads/bifpn_head.py:149 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"}