super(MyModule, self).init()
              self.choices = nn.ModuleDict({
                      'conv': nn.Conv2d(10, 10, 3),
                      'pool': nn.MaxPool2d(3)
              })
              self.activations = nn.ModuleDict([
                      ['lrelu', nn.LeakyReLU()],
                      ['prelu', nn.PReLU()]
              ])
      def forward(self, x, choice, act):
          x = self.choices[choice](x)
          x = self.activations[act](x)
          return x

clear()
  Remove all items from the ModuleDict.

items()
  Return an iterable of the ModuleDict key/value pairs.

  Return type:
     *Iterable*[*Tuple*[str, *Module*]]

keys()
  Return an iterable of the ModuleDict keys.

  Return type:
     *Iterable*[str]

pop(key)
  Remove key from the ModuleDict and return its module.

  Parameters:
     **key** (*str*) -- key to pop from the ModuleDict

  Return type:
     *Module*
