Reducer¶
- class Reducer[source]¶
-
Abstract base class for the recording of inputs over time.
- abstract dump(*args, **kwargs) Tensor | None[source]¶
Returns the reducer’s state over all observations.
- forward(*inputs: Tensor, **kwargs) None[source]¶
Initializes state and incorporates inputs into the reducer’s state.