terminator.models.layers.utils¶
Util functions useful in TERMinator modules
Functions
|
Aggregate TERM edge embeddings into a sequence-level dense edge features tensor |
|
Take a flat representation of TERM information and batch them into a stacked representation. |
|
Concatenate both node features onto the ends of gathered edge features given kNN sparse edge indices |
|
Concatenate node features onto the ends of gathered edge features given kNN sparse edge indices |
|
Concatenate both node features onto the ends of gathered edge features given kNN sparse edge indices |
|
Concatenate node features onto the ends of gathered edge features given kNN sparse edge indices |
|
Gather the edge features of the nearest neighbors. |
|
Gather node features of nearest neighbors. |
|
Gather the pair energies features of the nearest neighbors. |
|
Gather the TERM edge features of the nearest neighbors. |
|
Gather TERM node features of nearest neighbors. |
|
Average embeddings across bidirectional edges. |
|
Average embeddings across bidirectional edges for Torch Geometric graphs |
|
Average pair energy tables across bidirectional edges. |
|
Dense method to average pair energy tables across bidirectional edges. |
|
Sparse method to average pair energy tables across bidirectional edges with Torch Geometric. |
|
Sparse method to average pair energy tables across bidirectional edges. |
|
Average embeddings across bidirectional TERM edges. |
|
Given a sequence of tensors, batch them together by pads both dims 1 and 2 to max length. |