Expand description
Core ML host backend for Apple Neural Engine capable Macs.
The production path accepts device-neutral TOSA 1.0 FlatBuffers, validates and analyzes them
with virtio-accel-tosa, and lowers supported static floating-point graphs inside this
host-native crate. Core ML models are configured with CPUAndNeuralEngine: supported
operations may execute on the ANE, while Core ML remains free to place unsupported operations
on the CPU. Program buffers are page-aligned allocations wrapped directly by MLMultiArray;
output execution is accepted only when Core ML uses the same allocation as its output backing.
Structs§
- Core
MlAccelerator - Non-macOS placeholder that keeps workspace consumers portable.
- Core
MlArtifact - Builder for the provider-owned Core ML path artifact.
Enums§
- Artifact
Build Error - Invalid Core ML path artifact construction.
- Feature
Role - A Core ML model feature’s role in one virtio-accel binding.
- Init
Error - Failure to initialize a Core ML backend instance.
- Lowering
Error
Constants§
- ARTIFACT_
FORMAT - Provider artifact format for
CoreMlArtifact. - COREML_
TOSA_ TARGET - TOSA target currently lowered by the Core ML backend.
- REQUIRED_
RESIDENT_ BYTES - The Core ML runtime does not publish a finite upper bound for model residency.
- TARGET_
IDENTITY - Core ML path-artifact ABI v1 targeting CPU plus Apple Neural Engine execution.
Functions§
- supports_
tosa_ dtype - Whether this lowering can expose
dtypeat a Core ML model boundary. - supports_
tosa_ operator - Whether the initial Core ML lowering tier can lower
opfor supported types and attributes.