mlreco.models.layers.common.cnn_encoder module

class mlreco.models.layers.common.cnn_encoder.SparseResidualEncoder(cfg, name='res_encoder')[source]

Bases: mlreco.models.layers.common.uresnet_layers.UResNetEncoder

Minkowski Net Autoencoder for sparse tensor reconstruction.

__init__(cfg, name='res_encoder')[source]

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

__module__ = 'mlreco.models.layers.common.cnn_encoder'
training: bool
forward(input_tensor)[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.