I narrowed down the issue to the fact that the structure
cfg = ForwardDiff.GradientConfig(...)
is not thread safe, and there are obvious ways to get around that in my code.
I narrowed down the issue to the fact that the structure
cfg = ForwardDiff.GradientConfig(...)
is not thread safe, and there are obvious ways to get around that in my code.