Shortcuts

torch.nn.functional.huber_loss

torch.nn.functional.huber_loss(input, target, reduction='mean', delta=1.0)[source]

Function that uses a squared term if the absolute element-wise error falls below delta and a delta-scaled L1 term otherwise.

See HuberLoss for details.

Return type

Tensor

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources