Skip to content

Conversation

@ricardoV94
Copy link
Member

Also handle core op caching key to support per-op invalidation

Found in pymc-devs/pymc#7993

@ricardoV94 ricardoV94 added bug Something isn't working numba random variables labels Dec 26, 2025
@numba_basic.numba_njit
def random_fn(rng, alpha):
y = np.empty_like(alpha)
y = np.empty_like(alpha, dtype=dtype)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this was created as integers the line y[i] = ... would implicitly cast the gamma draws back to integer, but those must be floats for the output to make sense

Also handle core op caching key to support per-op invalidation
@ricardoV94 ricardoV94 force-pushed the fix_numba_discrete_alpha_dirichlet branch from 87e2f63 to e42c853 Compare December 26, 2025 17:15
@ricardoV94 ricardoV94 merged commit f091b86 into pymc-devs:main Dec 26, 2025
66 checks passed
@ricardoV94 ricardoV94 deleted the fix_numba_discrete_alpha_dirichlet branch December 26, 2025 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working numba random variables

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants