Skip to main content

narrow

Function narrow 

Source
const fn narrow(n: f64) -> f32
Expand description

Narrow a JSON number to the f32 every sampling field stores.

Named rather than inline because an #[allow] cannot sit on an expression, and the truncation is deliberate: the wire carries f64 and InferenceConfig has always been f32.