Is there @code_warntype output documentation anywhere?

Welcome @zenkavi! The Turing @model macro rewrites your model code (i.e., the tilde ~ statements etc.) into straight Julia code, which requires generating/mangling variable names in the process. Hence, using @code_warntype on a Turing model is harder to read than normal, an issue I run into myself pretty frequently. My only useful advice is to read through the output carefully, starting with the block at the top (where all the variables are listed with their original names). Often I can figure out which ones are causing issues from that section, then go back to reread my own code to try and figure out where any type instabilities came from.

If you can supply a MWE of your model, we may be able to help debug it…

1 Like