SR2DynamicSum

Source: models/common/DynamicSum.py

Sum a dynamic dimension.

Mirrors C++ DynamicSum<SR2>. The dim HIT option selects the dynamic-batch axis to sum over (the same convention as the C++ Size argument: 0 is the leading dynamic axis, -1 the trailing).

Inputs

frominput · SR2 · required

Variable to reduce

Outputs

tooutput · SR2 · required

The reduced variable

Other options

dimint · required

The dimension to sum