xnn.common.models.ops.structure_sums#

xnn.common.models.ops.structure_sums(src, index, dim_size)[source]#

structure_sum() of several per-atom rows at once: src (T, N) to float64 totals (T, dim_size) in one scatter (one cast, one zero fill and one index add for every row instead of three launches per row).

Parameters:
Return type:

Tensor