Skip to content

Commit

Permalink
Fix snr helper bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TrAyZeN committed Oct 31, 2024
1 parent 160c550 commit 7c1d996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/leakage_detection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ where
|| SnrProcessor::new(traces.shape()[1], classes),
|mut snr, (batch_idx, trace_batch)| {
for i in 0..trace_batch.shape()[0] {
snr.process(trace_batch.row(i), get_class(batch_idx + i));
snr.process(trace_batch.row(i), get_class(batch_idx * batch_size + i));
}
snr
},
Expand Down

0 comments on commit 7c1d996

Please sign in to comment.