We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b68e45 commit 2bf74e1Copy full SHA for 2bf74e1
src/sampler.rs
@@ -979,7 +979,7 @@ pub mod test_logps {
979
for (p, g) in pos.chunks_exact(4).zip(grad.chunks_exact_mut(4)) {
980
let p = f64x4::from_slice(p);
981
let val = mu_splat - p;
982
- logp = val * val * f64x4::splat(0.5);
+ logp -= val * val * f64x4::splat(0.5);
983
g.copy_from_slice(&val.to_array());
984
}
985
0 commit comments