xnn.gnn.models.gemnet.index_plan#

xnn.gnn.models.gemnet.index_plan(edge_index, edge_vec, num_nodes, emb_cutoff, int_cutoff, quadruplets)[source]#

The index work of a GemNet evaluation: the embedding edges (within the embedding cutoff), their reverse edges, the triplets and (quadruplet variants) the quadruplets.

Its sizes depend on the data; a captured training step builds it beforehand (GemNetPlanner).

Parameters:
  • edge_index (Tensor) – The edges within the model cutoff and their vectors.

  • edge_vec (Tensor) – The edges within the model cutoff and their vectors.

  • num_nodes (int) – Number of atoms.

  • emb_cutoff (float) – The embedding and interaction cutoffs.

  • int_cutoff (float) – The embedding and interaction cutoffs.

  • quadruplets (bool) – Whether to build the quadruplets.

Returns:

emb_ids, rev, t_out, t_in, t_k and, with quadruplets, those of quadruplet_indices().

Return type:

dict of str to Tensor