Shortcuts

mmcv.cnn.build_activation_layer

mmcv.cnn.build_activation_layer(cfg: Dict)torch.nn.modules.module.Module[源代码]

Build activation layer.

参数

cfg (dict) –

The activation layer config, which should contain:

  • type (str): Layer type.

  • layer args: Args needed to instantiate an activation layer.

返回

Created activation layer.

返回类型

nn.Module