Skip to content

Commit

Permalink
Fix deprecations (#1776)
Browse files Browse the repository at this point in the history
* Fix deprecations

* Update Project.toml

Co-authored-by: Hong Ge <[email protected]>
  • Loading branch information
devmotion and yebai authored Feb 18, 2022
1 parent a99cbae commit 9d3be02
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "Turing"
uuid = "fce5fe82-541a-59a6-adf8-730c64b5f9a0"
version = "0.20.1"
version = "0.20.2"

[deps]
AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001"
Expand Down
2 changes: 1 addition & 1 deletion src/inference/gibbs_conditional.jl
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ extractparam(p::Tuple{Vector{<:Array{<:Real}}, Vector{String}}) = foldl(vcat, p[
function extractparam(p::Tuple{Vector{<:Real}, Vector{String}})
values, strings = p
if length(values) == length(strings) == 1 && !occursin(r".\[.+\]$", strings[1])
# if m ~ MVNormal(1, 1), we could have have ([1], ["m[1]"])!
# if m ~ MVNormal([1], I), we could have have ([1], ["m[1]"])!
return values[1]
else
return values
Expand Down
2 changes: 1 addition & 1 deletion test/inference/Inference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@
end
@testset "vectorization @." begin
# https://github.com/FluxML/Tracker.jl/issues/119
if Turing.Core.ADBackend() !== Turing.Core.TrackerAD
if Turing.Essential.ADBackend() !== Turing.Essential.TrackerAD
@model function vdemo1(x)
s ~ InverseGamma(2, 3)
m ~ Normal(0, sqrt(s))
Expand Down
2 changes: 1 addition & 1 deletion test/modes/OptimInterface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
@model function regtest(x, y)
beta ~ MvNormal(Zeros(2), I)
mu = x*beta
y ~ MvNormal(mu, 1.0)
y ~ MvNormal(mu, I)
end

Random.seed!(987)
Expand Down

2 comments on commit 9d3be02

@devmotion
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/54887

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.20.2 -m "<description of version>" 9d3be029560a734c355378f1dece2f1f0ed1895f
git push origin v0.20.2

Please sign in to comment.