macro_rules! rlx_expr {
( $($body:tt)* ) => { ... };
}Expand description
Evaluate a single rlx!-grammar expression over in-scope Rust Tensor
values — the “Rust bridge”. Every identifier is a normal Rust variable, so
ordinary for loops and config drive the graph structure while the DSL
expresses the per-step math (e.g. h = rlx_expr!(gelu(linear(h, w, b)))).
This is what a macro-expanded rlx! { … } can’t do: runtime-length loops.
Requires the dsl feature.