style: cargo fmt --workspace (whitespace/wrapping only, no semantic change)
Whole-workspace rustfmt pass picked up while iterating on Mamba GPU backward work. Verified formatting-only via diff sampling; no logic changed. Co-Authored-By: Claude Sonnet 5 <[email protected]>
This commit is contained in:
@@ -26,8 +26,8 @@ pub use types::{
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use super::movement::{MovementPruner, MovementPruningConfig};
|
||||
use super::*;
|
||||
use rtx_tensor::{Device, Tensor};
|
||||
|
||||
#[test]
|
||||
@@ -140,7 +140,10 @@ mod tests {
|
||||
let pruned_values = pruned.to_vec().unwrap();
|
||||
|
||||
// With 50% sparsity, 2 of 4 values should be zeroed
|
||||
let zero_count = pruned_values.iter().filter(|&&x: &&f32| x.abs() < 1e-8).count();
|
||||
let zero_count = pruned_values
|
||||
.iter()
|
||||
.filter(|&&x: &&f32| x.abs() < 1e-8)
|
||||
.count();
|
||||
assert_eq!(zero_count, 2);
|
||||
|
||||
// Mask should be stored
|
||||
|
||||
Reference in New Issue
Block a user