torch.nn.HuberLossOptions
export interface HuberLossOptions {
/** How to reduce loss across batch (default: 'mean') */
reduction?: Reduction;
/** Threshold for switching between L1 and L2 behavior (default: 1.0) */
delta?: number;
}reduction(Reduction)optional- – How to reduce loss across batch (default: 'mean')
delta(number)optional- – Threshold for switching between L1 and L2 behavior (default: 1.0)
Options for HuberLoss module.