mmcv.cnn.build_activation_layer¶
- mmcv.cnn.build_activation_layer(cfg: Dict) → torch.nn.modules.module.Module[source]¶
Build activation layer.
- Parameters
cfg (dict) –
The activation layer config, which should contain:
type (str): Layer type.
layer args: Args needed to instantiate an activation layer.
- Returns
Created activation layer.
- Return type
nn.Module