Chapter 12 • Blyx Unique Feature
Tensors & AI Workloads
Blyx includes first-class tensor<T, D1, D2> types. Matrix dimensions are verified at compile-time by the BIR type checker.
fn forward(w: tensor<f32, 128, 64>, x: tensor<f32, 64, 32>) -> tensor<f32, 128, 32> {
matmul(w, x)
}