composer
composer copied to clipboard
Merge `LanguageCrossEntropyLoss` and `CrossEntropyLoss` metrics
LanguageCrossEntropyLoss
metric accepts both a mapping and tensor in update()
, but the remaining functionality appears the same as CrossEntropyLoss
. These metrics should be combined to reduce redundant code.
😬 Sorry for this, it's my code!
I can try to work on this soon -- but feel free to take a stab at it if I don't get it in time
Closing as done