You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... then each call to run_algo will invoke NumPyro's model compilation. It ought to be possible to avoid this (in cases where the data shape doesn't change between calls) by caching the MCMC instance and reusing it on subsequent calls.
The text was updated successfully, but these errors were encountered:
(in cases where the data shape doesn't change between calls)
Even if the data shape changes, but we can commit to a certain max size, it might be possible to use a masked distribution to enable this. We haven't needed a masked distribution in numpyro yet, but this may be a good use case. cc. @fehiepsi
If we do something like:
... then each call to
run_algo
will invoke NumPyro's model compilation. It ought to be possible to avoid this (in cases where the data shape doesn't change between calls) by caching theMCMC
instance and reusing it on subsequent calls.The text was updated successfully, but these errors were encountered: