xnn.common.train.graphed.NoIndexPlanner#

class xnn.common.train.graphed.NoIndexPlanner(check=None)[source]#

Bases: object

The planner of a model whose step needs no index work beyond its edges (PhysNet): the padded batch fixes the atom and edge counts only.

Parameters:

check (callable, optional) – Validates the atomic numbers of each structure before it is padded (a check that reads back from the GPU, which a captured step cannot), raising on invalid input; by default none.

offsets: Dict[str, str | None] = {}#

No plan entries.

pads: bool = True#

Whether a batch is padded by an inert structure to fixed counts.

static sizes(plan)[source]#

No sizes beyond the atoms and edges.

Parameters:

plan (Dict[str, Tensor])

Return type:

Dict[str, int]

static pad(plan, sizes, dummy_edge)[source]#

The empty plan.

Parameters:
Return type:

Dict[str, Tensor]