xnn.common.train.graphed.padding_structure#
- xnn.common.train.graphed.padding_structure(n_atoms, n_edges, like)[source]#
The inert structure that fills a batch:
n_atoms >= 2atoms on a line,n_edgesedges between neighbors on the line (each with its reverse:n_edgesis even), spread over the pairs in turn so that no atom collects many of them (sums onto one atom would serialize), no labels.- Parameters:
n_atoms (int)
n_edges (int)
like (AtomicGraph)
- Return type: