Skip to content

ForwardBackwardConfig

Source code in docs_src/capo_sagemakertrainingsessionruntime/types/forward_backward_config.py
class ForwardBackwardConfig(TypedDict, closed=True):
    loss_fn_name: "capo_sagemakertrainingsessionruntime.types.loss_fn_name.LossFnName"
    """<p>The name of the loss function to evaluate during the forward-backward pass.</p>"""
    datum_list: "capo_sagemakertrainingsessionruntime.types.datum_list.DatumList"
    """<p>The list of input data to feed through the model. Must contain at least one datum, and each datum must have a non-empty modelInput with at least one chunk.</p>"""
    loss_fn_config: NotRequired["object"]
    """<p>Additional loss function configuration passed to the engine. Supported keys are <code>clip_low_threshold</code> (valid range: 0 to 1) and <code>clip_high_threshold</code> (valid range: 1 to 10). Unsupported keys are rejected.</p>"""

datum_list instance-attribute

datum_list: DatumList

The list of input data to feed through the model. Must contain at least one datum, and each datum must have a non-empty modelInput with at least one chunk.

loss_fn_config instance-attribute

loss_fn_config: NotRequired[object]

Additional loss function configuration passed to the engine. Supported keys are clip_low_threshold (valid range: 0 to 1) and clip_high_threshold (valid range: 1 to 10). Unsupported keys are rejected.

loss_fn_name instance-attribute

loss_fn_name: LossFnName

The name of the loss function to evaluate during the forward-backward pass.