Files
foxhunt/ml/src/tft
jgrusewski a9ddff03b6 fix(ml): replace unwrap() with ok_or_else() in TFT quantized attention forward pass
Replace 10 .as_ref().unwrap() calls on Option<QuantizedTensor> weight fields
(q_weights, k_weights, v_weights, o_weights) and attention_cache with
.as_ref().ok_or_else(|| MLError::ModelError(...))? to satisfy the
clippy::unwrap_used deny lint. Affected methods: build_cache,
forward_with_mask, compute_projections_slow, and the test
test_attention_weights_sum_to_one.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 23:34:17 +01:00
..