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.
copy
deepcopy
1 parent a18c12f commit fc8cfa6Copy full SHA for fc8cfa6
src/sample.jl
@@ -391,7 +391,8 @@ function mcmcsample(
391
nchunks = min(nchains, Threads.nthreads())
392
chunksize = cld(nchains, nchunks)
393
interval = 1:nchunks
394
- rngs = [deepcopy(rng) for _ in interval]
+ # `copy` instead of `deepcopy` for RNGs: https://github.com/JuliaLang/julia/issues/42899
395
+ rngs = [copy(rng) for _ in interval]
396
models = [deepcopy(model) for _ in interval]
397
samplers = [deepcopy(sampler) for _ in interval]
398
0 commit comments