{"record":{"id":"2ca7ac65c5052e2c","repo":"babysor/MockingBird","slug":"support-only-linear-or-conv1d","errorCode":null,"errorMessage":"Support only linear or conv1d.","messagePattern":"Support only linear or conv1d\\.","errorType":"validation","errorClass":"NotImplementedError","httpStatus":null,"severity":"error","filePath":"models/ppg_extractor/encoder/conformer_encoder.py","lineNumber":169,"sourceCode":"            )\n        elif positionwise_layer_type == \"conv1d\":\n            positionwise_layer = MultiLayeredConv1d\n            positionwise_layer_args = (\n                attention_dim,\n                linear_units,\n                positionwise_conv_kernel_size,\n                dropout_rate,\n            )\n        elif positionwise_layer_type == \"conv1d-linear\":\n            positionwise_layer = Conv1dLinear\n            positionwise_layer_args = (\n                attention_dim,\n                linear_units,\n                positionwise_conv_kernel_size,\n                dropout_rate,\n            )\n        else:\n            raise NotImplementedError(\"Support only linear or conv1d.\")\n\n        if selfattention_layer_type == \"selfattn\":\n            logging.info(\"encoder self-attention layer type = self-attention\")\n            encoder_selfattn_layer = MultiHeadedAttention\n            encoder_selfattn_layer_args = (\n                attention_heads,\n                attention_dim,\n                attention_dropout_rate,\n            )\n        elif selfattention_layer_type == \"rel_selfattn\":\n            assert pos_enc_layer_type == \"rel_pos\"\n            encoder_selfattn_layer = RelPositionMultiHeadedAttention\n            encoder_selfattn_layer_args = (\n                attention_heads,\n                attention_dim,\n                attention_dropout_rate,\n            )\n        else:","sourceCodeStart":151,"sourceCodeEnd":187,"githubUrl":"https://github.com/babysor/MockingBird/blob/28dc5e14f12d7c754612af2fde8e78a4b03f8616/models/ppg_extractor/encoder/conformer_encoder.py#L151-L187","documentation":"Raised when positionwise_layer_type in the Conformer encoder is neither 'linear' (PositionwiseFeedForward) nor 'conv1d' (ConvolutionalPositionwiseFeedForward).","triggerScenarios":"Constructing the conformer encoder with positionwise_layer_type set to anything other than 'linear' or 'conv1d'.","commonSituations":"Config typos like 'conv1' or 'ffn'; copying configs from other ESPnet forks with extra positionwise types.","solutions":["Set positionwise_layer_type to 'linear' or 'conv1d' (conformer default is usually 'conv1d')","Verify the YAML key spelling (positionwise_layer_type, not positionwise_type)"],"exampleFix":"# before\npositionwise_layer_type: conv\n\n# after\npositionwise_layer_type: conv1d","handlingStrategy":"validation","validationCode":"assert positionwise_layer_type in ('linear', 'conv1d'), positionwise_layer_type","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Pin config presets known to work","Validate all *_layer_type fields in one pass at startup"],"tags":["conformer","encoder","feedforward","config"],"backgroundTag":"invalid-enum-value","analyzedSha":"28dc5e14f12d7c754612af2fde8e78a4b03f8616","analyzedAt":"2026-08-27T02:26:53.589Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}