oa::FnFlow::maskedMse
Mean squared error over only valid elements. inMask is a binary 0/1 mask and may be scalar or broadcastable to inPrediction (for example [B,S,1] for padded motion tokens). Padding therefore never changes the loss scale.
Function Documentation
Mean squared error over only valid elements. inMask is a binary 0/1 mask and may be scalar or broadcastable to inPrediction (for example [B,S,1] for padded motion tokens). Padding therefore never changes the loss scale.
Parameters
inPredictionconst oa::Matrix &—
inTargetconst oa::Matrix &—
inMaskconst oa::Matrix &—
Returns
oa::MatrixThe declared return value.