xnn.common.models.csr.orderings#

xnn.common.models.csr.orderings(src, dst, n, key=None)[source]#

The pairs by center and by neighbor: (order_dst, ptr_dst, order_src, ptr_src).

Computed once per pair list: the layers of an evaluation pass the same src and dst tensors, or the same key (for example the edge index the two are rows of). The cache holds them, so an identical object is the same pair list.

Parameters:
Return type:

Tuple[Tensor, Tensor, Tensor, Tensor]