Skip to content

Add MLX dispatch for Pad#2019

Merged
ricardoV94 merged 3 commits intopymc-devs:v3from
jessegrabowski:mlx-pad
Apr 6, 2026
Merged

Add MLX dispatch for Pad#2019
ricardoV94 merged 3 commits intopymc-devs:v3from
jessegrabowski:mlx-pad

Conversation

@jessegrabowski
Copy link
Copy Markdown
Member

Like ARange, Pad is very limited compared to jax/numpy/pytensor.

  • Only constant and edge modes are support
  • If constant, the constant_values must be a single scalar constant. The mlx function will accept an array but there seems to be a bug: it just takes the first item of the array and pads out with that. So might as well reject all cases.

@ricardoV94 ricardoV94 merged commit 58e3ff1 into pymc-devs:v3 Apr 6, 2026
66 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants