Skip to content

Commit

Permalink
Update deprecated.jl (#2147)
Browse files Browse the repository at this point in the history
Fix wrong message
  • Loading branch information
sunxd3 authored Dec 18, 2023
1 parent d0691e0 commit f527669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function setchunksize(::Int)
end

function setrdcache(::Bool)
Base.depwarn("`RDCACHE` and `setrdcache` are deprecated. Please specify the chunk size directly in the sampler constructor, e.g., `HMC(0.1, 5; adtype=AutoReverseDiff(false))`.\n This function has no effects.", :setrdcache; force=true)
Base.depwarn("`RDCACHE` and `setrdcache` are deprecated. Please specify if you wish to use compiled tape for ReverseDiff directly in the sampler constructor, e.g., `HMC(0.1, 5; adtype=AutoReverseDiff(false))`.\n This function has no effects.", :setrdcache; force=true)
nothing
end

Expand Down

0 comments on commit f527669

Please sign in to comment.