torch.nn.SmoothL1LossOptions
export interface SmoothL1LossOptions {
/** How to reduce the loss ('none' | 'mean' | 'sum', default: 'mean') */
reduction?: Reduction;
/** Threshold for transitioning between L1 and L2 behavior (default: 1.0) */
beta?: number;
}reduction(Reduction)optional- – How to reduce the loss ('none' | 'mean' | 'sum', default: 'mean')
beta(number)optional- – Threshold for transitioning between L1 and L2 behavior (default: 1.0)
Options for SmoothL1Loss.