ml: report_prefill_cost uses Net::whole
- Commit
cabd584dae24dc0c9b52529b491f6478faa319fd- Author
- vayun-mathur <[email protected]>
- When
- 2026-10-26 02:55 UTC (1 month ago)
- Parents
173a480
Diff
library/ml/src/main/rust/examples/report_prefill_cost.rs
diff --git a/library/ml/src/main/rust/examples/report_prefill_cost.rs b/library/ml/src/main/rust/examples/report_prefill_cost.rsindex b1d3198f15..ef8b6ecd47 100644--- a/library/ml/src/main/rust/examples/report_prefill_cost.rs+++ b/library/ml/src/main/rust/examples/report_prefill_cost.rs@@ -98,7 +98,7 @@ fn main() { // Constructed at `DecodeStep`, exactly as `bridge.rs:2605` does, so the arena is sized for the // larger of the two and the switch to prefill cannot grow it. Growing is what would drop the // KV caches, and doing it in the same order as the shipping code is the point.- let mut net = match Net::new(context, decode, &weights, RESCALE_ONLY) {+ let mut net = match Net::whole(context, decode, &weights, RESCALE_ONLY) { Ok(net) => net, Err(why) => { println!("the decode plan does not record: {why}");