JuliaML / LossFunctions.jl

Julia package of loss functions for machine learning.
https://juliaml.github.io/LossFunctions.jl/stable
Other
148 stars 34 forks source link

remove unneeded generated function for OrdinalMarginLoss constructor #153

Closed vtjnash closed 1 year ago

vtjnash commented 1 year ago

The normal lowering for this function uses fieldtype, just like this, which does not suffer from the assumption mistakes of the @generated approximation of this of how to unwrap and normalize types correctly.