xnn.ffnn.models.amoeba_kernels.select_pairs#

xnn.ffnn.models.amoeba_kernels.select_pairs(active)[source]#

The pairs the kernels visit: the indices of the active ones (M,) in increasing order, followed by zeros up to M + 1 entries, and their number as an int32 tensor (1,), both on the device without a host read (a CUDA graph records them).

Parameters:

active (Tensor)

Return type:

tuple