Skip to content

Commit ba7ac8c

Browse files
authored
Use Base.RefValue (#374)
1 parent 0eee665 commit ba7ac8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/abstractmcmc.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ struct HMCProgressCallback{P}
189189
"If `progress` is not specified and this is `true` some information will be logged upon completion of adaptation."
190190
verbose::Bool
191191
"Number of divergent transitions fo far."
192-
num_divergent_transitions::Ref{Int}
193-
num_divergent_transitions_during_adaption::Ref{Int}
192+
num_divergent_transitions::Base.RefValue{Int}
193+
num_divergent_transitions_during_adaption::Base.RefValue{Int}
194194
end
195195

196196
function HMCProgressCallback(n_samples; progress = true, verbose = false)

0 commit comments

Comments
 (0)