embeddings

openchem_embedding

class modules.embeddings.openchem_embedding.OpenChemEmbedding(params)[source]

Bases: torch.nn.modules.module.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

basic_embedding

class modules.embeddings.basic_embedding.Embedding(params)[source]

Bases: openchem.modules.embeddings.openchem_embedding.OpenChemEmbedding

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_required_params()[source]
training: bool

positional_embedding