mmcv.cnn.build_conv_layer¶
- mmcv.cnn.build_conv_layer(cfg: Dict | None, *args, **kwargs) 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