(pred,
target,
weight=None,
reduction='mean',
avg_factor=None,
**kwargs)
| 77 | |
| 78 | @functools.wraps(loss_func) |
| 79 | def wrapper(pred, |
| 80 | target, |
| 81 | weight=None, |
| 82 | reduction='mean', |
| 83 | avg_factor=None, |
| 84 | **kwargs): |
| 85 | # get element-wise loss |
| 86 | loss = loss_func(pred, target, **kwargs) |
| 87 | loss = weight_reduce_loss(loss, weight, reduction, avg_factor) |
| 88 | return loss |
| 89 | |
| 90 | return wrapper |
| 91 |
nothing calls this directly
no test coverage detected