Python API#
- class onnx_light_cpu.SimdLevel#
An
IntEnumnaming the instruction-set levels used for CPU kernel dispatch:NONE,SSE2,AVX,AVX2, andAVX512.
- 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.