Speeding up my logsumexp function

I wondered whether ReverseDiff had been quietly fixed, but it seems not, Use with ReverseDiff · Issue #21 · mcabbott/Tullio.jl · GitHub has a simple test. So I think you ought to get errors if Turing is trying to do this, at all. Is there a chance Turing isn’t using AD at all?

So lsexp1 which is purely broadcasting is giving you this corruption error? That might be worth isolating. Is A still sparse here?