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=3name=Conv.CONVTRANSconv=Conv[name, dimension]
frommonai.networks.layersimportget_act_layers_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