mmcv.cnn.build_plugin_layer¶ mmcv.cnn.build_plugin_layer(cfg: Dict, postfix: int | str = '', **kwargs) → Tuple[str, Module][source]¶ Build plugin layer. Parameters: cfg (dict) – cfg should contain: type (str): identify plugin layer type. layer args: args needed to instantiate a plugin layer. postfix (int, str) – appended into norm abbreviation to create named layer. Default: ‘’. Returns: The first one is the concatenation of abbreviation and postfix. The second is the created plugin layer. Return type: tuple[str, nn.Module]