mlreco.models.layers.common.nonlinearities module

class mlreco.models.layers.common.nonlinearities.MinkowskiLeakyReLU(*args: Any, **kwargs: Any)[source]

Bases: MinkowskiNonlinearity.

MODULE

alias of torch.nn.modules.activation.LeakyReLU

__repr__()[source]

Return repr(self).

__module__ = 'mlreco.models.layers.common.nonlinearities'
__orig_bases__ = (MinkowskiNonlinearity.MinkowskiNonlinearityBase,)
class mlreco.models.layers.common.nonlinearities.MinkowskiELU(*args: Any, **kwargs: Any)[source]

Bases: MinkowskiNonlinearity.

MODULE

alias of torch.nn.modules.activation.ELU

__module__ = 'mlreco.models.layers.common.nonlinearities'
__orig_bases__ = (MinkowskiNonlinearity.MinkowskiNonlinearityBase,)
class mlreco.models.layers.common.nonlinearities.MinkowskiMish[source]

Bases: torch.nn.modules.module.Module

Mish Nonlinearity: https://arxiv.org/pdf/1908.08681.pdf

__init__()[source]

Initializes internal Module state, shared by both nn.Module and ScriptModule.

forward(input)[source]

Defines the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

__repr__()[source]

Return repr(self).

__module__ = 'mlreco.models.layers.common.nonlinearities'
training: bool