Skip to content

Developer Guide Networks

Wenqi Li edited this page Apr 12, 2022 · 1 revision

(work in progress)

Scope

monai.networks consists of nets, blocks and layers sub-modules that correspond to

  • network model implementations,
  • reusable building blocks,
  • essential differentiable component, respectively.

blocks is implemented as a pytorch module with one or multiple layers. nets is implemented as a pytorch module with one or multiple layers and blocks.

Features

    dimension = 3
    name = Conv.CONVTRANS
    conv = Conv[name, dimension]
        from monai.networks.layers import get_act_layer
        s_layer = get_act_layer(name="swish")
        p_layer = get_act_layer(name=("prelu", {"num_parameters": 1, "init": 0.25}))
  • support of torchscript

Tests

Clone this wiki locally