Skip to main content

quantizable

Function quantizable 

Source
pub fn quantizable(scheme: &QuantScheme) -> bool
Expand description

Whether a backend can quantize against this scheme’s scales.

A backend answers supports_dtype with this, so an unsupported scheme is declined where it is chosen rather than at the first quantize. Each condition is asserted again where it is relied on, so bypassing this reports the specific rule rather than this general one.