Closed ShuhuaGao closed 2 years ago
It seems that the loss types are not callable now. Is it intentional?
Meanwhile, you can make it callable
julia> using LossFunctions
julia> (l::Loss)(targets, outputs) = value(l, targets, outputs)
julia> loss = L2DistLoss()
LPDistLoss{2}()
julia> loss(1, 0.5f0)
0.25f0
The functional form works fine with vectors as arguments loss([1,2,3], [4,5,6])
When following the get started guide, I encountered the error below:
version: