Python API#

class onnx_light_cpu.SimdLevel#

An IntEnum naming the instruction-set levels used for CPU kernel dispatch: NONE, SSE2, AVX, AVX2, and AVX512.

onnx_light_cpu.detect_simd_level() SimdLevel#

Returns the highest SIMD instruction-set level available to this process. The result remains compatible with integer comparisons.

onnx_light_cpu.has_cpu_kernels() bool#

Returns whether the compiled onnx-light-cpu kernel extension is available.