Skip to content
class

CpuBackend

extendsIBackend
CpuBackend

CPU (Apple Accelerate-backed) concrete IBackend.

Every public method satisfies the IBackend contract; the private section holds low-level type-dispatch helpers (unary_op, binary_op, reduce_axes) plus per-op compute routines that delegate to the Accelerate helpers in Blas.h, Lapack.h, Norm.h, Pool.h, Reduce.h, Vdsp.h, and Vforce.h.

See Also

IBackend — abstract base. GpuBackend — MLX/Metal counterpart. Dispatcher — owns the singleton instance.

Notes

Marked final — there is exactly one CPU backend at runtime, installed by CpuBackendRegistrar at static-init time.

Static methods

52

Virtual methods

1
virtconst

device

→Device
Device device()

Returns Device::CPU.

Returns

Device

The device tag this backend services.

Methods

257