ethosu_operator
Classes
EthosUOperator
EthosUOperator(op: AirOperator, model: AirModel, platform: SocPlatform, prefix: str = 'aot', attributes: dict[str, str] = {})
AIR Ethos-U custom operator.
The generated kernel drives the Arm Ethos-U NPU through the Ethos-U core
driver (ethosu_driver.h / ethosu_invoke_v3), which is a hard
dependency. The emitted source is fail-closed: if the driver header is not
on the include path the translation unit stops with a #error rather
than silently compiling a no-op stub. A non-functional stub remains
available for host-side / bring-up builds by defining
HELIA_ETHOSU_ALLOW_STUB=1 (the NPU is not executed in that mode). The
generated CMake module advertises and wires the driver dependency; see
aot/templates/cmake/CMakeLists.txt.j2.
Remaining limitations: - Does not enforce 16-byte alignment for tensors.