Skip to content

Commit

Permalink
Merge pull request #31 from GiggleLiu/fix-sharedrw
Browse files Browse the repository at this point in the history
check share read and write
  • Loading branch information
GiggleLiu authored Aug 24, 2020
2 parents a2ee63e + 7f7d123 commit 862cd40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/stdlib/statistics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ get the pdf of `Normal(μ, σ)` at point `x`.
anc1 += x
anc1 -= μ
anc2 += anc1 / σ # (x- μ)/σ
anc3 += anc2 * anc2 # (x-μ)^2/σ^2
anc3 += anc2^2 # (x-μ)^2/σ^2
end

out -= anc3 * 0.5 # -(x-μ)^2/2σ^2
Expand Down
2 changes: 1 addition & 1 deletion test/autodiff/hessian_backback.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ using NiLang.AD: hessian_numeric
a += b^d
c += b/d
ROT(a, c, d)
b += d * d
b += d ^ 2
a += c * d
end
h1 = hessian_backback(test, (0.0, 2.0, 1.0, 3.0); iloss=1)
Expand Down

0 comments on commit 862cd40

Please sign in to comment.