mlp

class modules.mlp.openchem_mlp.OpenChemMLP(params)[source]

Bases: torch.nn.modules.module.Module

Base class for MLP module

forward(inp)[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.

static get_optional_params()[source]
static get_required_params()[source]
training: bool
class modules.mlp.openchem_mlp.OpenChemMLPSimple(params)[source]

Bases: torch.nn.modules.module.Module

Base class for MLP module

forward(inp)[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.

static get_optional_params()[source]
static get_required_params()[source]
training: bool