-
I had two quick questions regarding how pyro runs the simulations:
|
Beta Was this translation helpful? Give feedback.
Answered by
zingale
Mar 30, 2021
Replies: 1 comment
-
Yes, the main loop is Numba is only used in the compute-intensive kernels. Look at the output of:
And you'll see where it is used. Not every solver needs numba, but for some of the code, if it was too complex to do in slice notation, we explicitly use loops and for those loops, we use the numba JIT compiler. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
priesbr1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, the main loop is
run_sim()
in pyro.py which basically callssingle_step()
.Numba is only used in the compute-intensive kernels. Look at the output of:
And you'll see where it is used. Not every solver needs numba, but for some of the code, if it was too complex to do in slice notation, we explicitly use loops and for those loops, we use the numba JIT compiler.