jgrusewski
39e5dafc62
fix(cuda): harden GPU hot-path guard — exclude tests, remove false-positive patterns
- Guard: exclude #[cfg(test)] modules (tests need scalar readbacks for assertions)
- Guard: exclude #[cfg(not(feature = "cuda"))] guarded expressions (dead code with CUDA)
- Guard: remove Tensor::from_vec/from_slice from leak patterns (CPU→GPU is correct direction)
- Guard: remove .to_scalar from leak patterns (single 4-byte readback, not bulk transfer)
- dqn.rs: rewrite log_q_values() to use GPU tensor ops (min/max/mean/var), eliminate to_vec1
- dqn.rs: rewrite clip monitoring to use GPU tensor ops, individual .to_scalar() readbacks
- ppo.rs: replace stacked .to_vec1() metrics readback with individual .to_scalar() calls
- evaluate_baseline.rs: single-bar DQN action from .to_vec1::<u32>() to .to_scalar::<u32>()
- mod.rs: remove gpu_upload_vec/gpu_upload_slice wrappers (guard no longer flags from_vec)
- Delete dead demo_dqn.rs (zero callers, stub returning mock results)
Remaining: 4 .to_vec1() violations across 3 files — porting to existing CUDA implementations.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 23:04:46 +01:00
..
2026-03-12 01:44:03 +01:00
2026-03-13 11:56:56 +01:00
2026-03-12 01:44:03 +01:00
2026-02-25 23:20:44 +01:00
2026-03-04 15:29:15 +01:00
2026-03-01 23:41:13 +01:00
2026-02-25 21:19:32 +01:00
2025-10-30 01:26:02 +01:00
2026-03-04 23:46:36 +01:00
2026-02-25 23:24:53 +01:00
2026-03-04 23:46:36 +01:00
2026-02-26 09:04:58 +01:00
2026-03-15 23:04:46 +01:00
2026-03-11 22:00:13 +01:00
2026-02-24 10:32:21 +01:00
2026-02-26 00:50:25 +01:00
2026-02-26 00:50:25 +01:00
2026-03-11 22:00:13 +01:00
2026-02-26 00:50:25 +01:00
2026-03-15 11:58:40 +01:00
2026-03-13 11:54:22 +01:00
2026-03-04 22:08:31 +01:00
2026-02-24 10:32:21 +01:00
2026-03-04 22:08:31 +01:00
2026-03-04 22:08:31 +01:00
2026-03-04 22:08:31 +01:00