oa::FnLoss::crossEntropy
crossEntropy: Mean cross-entropy over rank-two logits and UInt8, UInt32, or non-negative Int32 class-index targets; the scalar result is Float32, and an out-of-range target produces NaN without an out-of-bounds read.
Function Documentation
crossEntropy: Mean cross-entropy over rank-two logits and UInt8, UInt32, or non-negative Int32 class-index targets; the scalar result is Float32, and an out-of-range target produces NaN without an out-of-bounds read.
Parameters
inLogitsconst oa::Matrix &—
inTargetsconst oa::Matrix &—
Returns
oa::MatrixThe declared return value.