Skip to content
fn

huber_loss_op

→TensorImplPtr
int huber_loss_op(const int & input, const int & target, double delta, int reduction)

Python wrappers

Public Python APIs implemented by this engine symbol.

Public Huber (smooth L1) loss entry point.

Parameters

inputTensorImplPtr
Predicted tensor.
targetTensorImplPtr
Ground-truth tensor of the same shape.
deltadouble
Quadratic / linear transition threshold; must be > 0.
reductionint
0 (None), 1 (Mean), or 2 (Sum).

Returns

TensorImplPtr

Reduced or per-element loss tensor.