flowrs-engine/crates/flowrs-app/eval/graphs/ml-tensor-math.fdsl
flowRS fd958c0547 flowRS engine, cut from flowRS 3451b065
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-02 19:04:39 -05:00

4 lines
244 B
Text

let n0 = ml.tensor { shape: "[2, 2]", values: "[1.0, -2.0, 0.5, 3.0]" };
let n1 = ml.tensor { shape: "[2, 1]", values: "[1.5, -0.5]" };
let n2 = ml.matmul(a: n0.tensor.clone(), b: n1.tensor.clone());
let n3 = ml.relu(input: n2.result.clone());