SR2IntermediateSum

Source: models/common/IntermediateSum.py

Sum an intermediate dimension.

Mirrors C++ IntermediateSum<SR2>: reduces the trailing sub-batch axis by summing along it, dropping sub_batch_ndim by 1.

The reduces HIT parameter names the sub-batch label this reducer collapses; the composed-model propagator uses it to track per-label structural state through the chain.

Inputs

frominput · SR2 · required

Variable to reduce

Outputs

tooutput · SR2 · required

The reduced variable

Other options

reducesstr · required

Sub-batch label this reducer collapses.