Tinkex.Future.Combiner (Tinkex v0.3.4)
View SourceHelpers for combining chunked forward/backward results returned by the API.
Training client callers rely on this module to flatten chunk responses and apply metric reduction identical to the Python SDK.
Summary
Functions
Combine multiple chunked %ForwardBackwardOutput{} structs into a single
struct.
Functions
@spec combine_forward_backward_results([Tinkex.Types.ForwardBackwardOutput.t()]) :: Tinkex.Types.ForwardBackwardOutput.t()
Combine multiple chunked %ForwardBackwardOutput{} structs into a single
struct.
loss_fn_output_typeis taken from the first chunk. When later chunks disagree a warning is logged but the first value still wins.loss_fn_outputsare flattened in chunk order.metricsare merged viaTinkex.MetricsReduction.reduce/1.