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 00886ec commit ba4f30eCopy full SHA for ba4f30e
src/fasteval.jl
@@ -375,7 +375,7 @@ function (f::FastLogDensityAt)(params::AbstractVector{<:Real})
375
# TODO(penelopeysm): This should _not_ check Threads.nthreads(). I still don't know what
376
# it _should_ do, but this is wrong regardless.
377
# https://github.com/TuringLang/DynamicPPL.jl/issues/1086
378
- vi = if Threads.nthreads() > 1
+ vi = if DynamicPPL.USE_THREADSAFE_EVAL[]
379
accs = map(
380
acc -> DynamicPPL.convert_eltype(float_type_with_fallback(eltype(params)), acc),
381
accs,
0 commit comments