{"record":{"id":"b55240ee98519ebf","repo":"tensorflow/models","slug":"received-skip-type-within-block-creation","errorCode":null,"errorMessage":"Received skip type within block creation.","messagePattern":"Received skip type within block creation\\.","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/projects/edgetpu/vision/modeling/mobilenet_edgetpu_v2_model_blocks.py","lineNumber":80,"sourceCode":"  id_skip: bool = True\n  fused_expand: bool = False\n  fused_project: bool = False\n  conv_type: str = 'depthwise'\n  group_size: Optional[int] = None\n\n  @classmethod\n  def from_search_config(cls,\n                         input_filters: int,\n                         output_filters: int,\n                         block_search_config: BlockSearchConfig,\n                         num_repeat: int = 1,\n                         se_ratio: Optional[float] = None,\n                         id_skip: bool = True) -> 'BlockConfig':\n    \"\"\"Creates BlockConfig from the given parameters.\"\"\"\n    block_op_type = block_search_config.op_type\n\n    if block_op_type.type == BlockType.skip:\n      raise ValueError('Received skip type within block creation.')\n    elif block_op_type.type == BlockType.ibn_dw:\n      fused_expand = False\n      fused_project = False\n      conv_type = 'depthwise'\n    elif block_op_type.type == BlockType.ibn_fused:\n      fused_expand = True\n      fused_project = False\n      conv_type = 'full'\n    elif block_op_type.type == BlockType.ibn_fused_grouped:\n      fused_expand = True\n      fused_project = False\n      conv_type = 'group'\n    elif block_op_type.type == BlockType.ibn_grouped:\n      fused_expand = False\n      fused_project = False\n      conv_type = 'group'\n    else:\n      raise NotImplementedError(f'Unsupported IBN type {block_op_type.type}.')","sourceCodeStart":62,"sourceCodeEnd":98,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/edgetpu/vision/modeling/mobilenet_edgetpu_v2_model_blocks.py#L62-L98","documentation":"Error \"Received skip type within block creation.\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/edgetpu/vision/modeling/mobilenet_edgetpu_v2_model_blocks.py:80 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"}