Shortcuts

mmcv.cnn.build_conv_layer

mmcv.cnn.build_conv_layer(cfg: Optional[Dict], *args, **kwargs)torch.nn.modules.module.Module[source]

Build convolution layer.

Parameters
  • cfg (None or dict) – The conv layer config, which should contain: - type (str): Layer type. - layer args: Args needed to instantiate an conv layer.

  • args (argument list) – Arguments passed to the __init__ method of the corresponding conv layer.

  • kwargs (keyword arguments) – Keyword arguments passed to the __init__ method of the corresponding conv layer.

Returns

Created conv layer.

Return type

nn.Module