You can use Turing.@addlogprob!
instead of Turing.acclogp!
:
Turing.@addlogprob! logpdf(Normal(m*x[i]+c, σ), y[i])
The macro just rewrites it with Turing.acclogp!
but you don’t have to specify (and hence are not warned about) the internal variable _varinfo
.