mathmerizing:

I don’t want to set allow_unused=true in my C++ code, since then I don’t think that my second derivatives will be correct anymore. In Python it all worked with allow_unused=False .


This sounds very fishy and I would double check.