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
The belief propagation function consists of a for loop, which might be sub-optimal when caching the function. It could instead be coded as a switch node where relevant update functions are indexed.
The text was updated successfully, but these errors were encountered:
Because jax.lax.switch turns everything into Tracers, the node_idx cannot be set as static anymore and this would require using Partial beforehand. I am not sure there is any benefit to doing this in the current codebase, but this is worth trying in the vectorized version, where node_idx can be a tracer (see #124 ).
The belief propagation function consists of a for loop, which might be sub-optimal when caching the function. It could instead be coded as a switch node where relevant update functions are indexed.
The text was updated successfully, but these errors were encountered: