Skip to content

Commit

Permalink
Remove unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
opentaco committed Nov 8, 2024
1 parent eda5c80 commit 6af8805
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pallets/subtensor/src/epoch/math.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,6 @@ pub fn weighted_mean_col(
}
if !use_stake.is_empty() {
inplace_normalize(&mut use_stake);
let stake_sum: I32F32 = use_stake.iter().sum();
mean[c] = dotprod(&use_stake, &use_score);
}
}
Expand All @@ -1091,8 +1090,6 @@ pub fn weighted_mean_col_sparse(
let zero: I32F32 = I32F32::from_num(0);
let mut use_stake: Vec<I32F32> = stake.iter().copied().filter(|&s| s > zero).collect();
inplace_normalize(&mut use_stake);
let stake_sum: I32F32 = use_stake.iter().sum();
let stake_idx: Vec<usize> = (0..use_stake.len()).collect();
let mut use_score: Vec<Vec<I32F32>> = vec![vec![zero; use_stake.len()]; columns as usize];
let mut mean: Vec<I32F32> = vec![zero; columns as usize];
let mut k: usize = 0;
Expand Down

0 comments on commit 6af8805

Please sign in to comment.