oa::FnFlow
FnFlow namespace in the OA Ml public surface.
NsC++ public headers
Public Functions
Function Documentation
One explicit Euler integration step: x(t + dt) = x(t) + dt * v(t). Sampling noise-to-data passes a negative inDeltaTime.
Parameters
inStateconst oa::Matrix &—
inVelocityconst oa::Matrix &—
inDeltaTimeoa::F32—
Returns
oa::MatrixThe declared return value.
Construct x(t) = clean + t * (noise - clean) and the training target v(t) = noise - clean. inTime may be scalar, [B], or already broadcastable to inClean. A [B] vector is expanded across every non-batch dimension.
Parameters
inCleanconst oa::Matrix &—
inNoiseconst oa::Matrix &—
inTimeconst oa::Matrix &—
Returns
FlowMatchBatchThe declared return value.
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.