# policy-ratio ![Wire-tailed manakin](assets/logo.png) Compute the clipped PPO surrogate and clipping fraction using sampled-token log probabilities. Supply a fixed positive clip radius in each row. Inputs in order: new_logp, old_logp, advantage, radius. Outputs in order: loss, fraction. Import this module into a Blyx program and call fd_policy_ratio(rows, width) to emit a StableHLO module on standard output. Supply positive fixed dimensions within the documented Flightdeck shape limits.