Skip to content

Add MLX dispatch for Pad#2019

Open
jessegrabowski wants to merge 2 commits intopymc-devs:v3from
jessegrabowski:mlx-pad
Open

Add MLX dispatch for Pad#2019
jessegrabowski wants to merge 2 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.

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.

1 participant