kiln is a Core ML backend for Burn 0.22. Implemented tensor ops are compiled Core ML models (MLModel in CoreML.framework), one model per op. Core ML is not an eager kernel library. Ops with no Core ML implementation fail explicitly.
Repository: https://github.com/Lyamc/kiln
[dependencies]
kiln = { git = "https://github.com/Lyamc/kiln" }
burn = "0.22"Core ML execution requires an Apple platform (CoreML.framework on macOS). Stock Burn 0.22 cannot register an out-of-tree device, so kiln is not selectable through burn::tensor::Device until Burn allows that. Construct the device type exported by this crate and call the low-level burn_backend operation traits.
use burn_backend::ops::FloatTensorOps;
use burn_backend::TensorData;
use kiln::{Kiln, KilnDevice};
let device = KilnDevice::default();
let lhs = Kiln::float_from_data(TensorData::from([1.0f32, 2.0]), &device);
let rhs = Kiln::float_from_data(TensorData::from([3.0f32, 4.0]), &device);
let sum = <Kiln as FloatTensorOps<Kiln>>::float_add(lhs, rhs);