Control flow

My prog prog course instructor asked me this. He taught from the course textbook: http://arxiv.org/abs/1809.10756

What controls the control flow in pyro, the model or guide? Where precisely does scoring happen?

the short answer is that the guide controls control flow. if you want to understand better what’s happening under the hood this tutorial is a good place to start