Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mx.repeat with variable number of repetitions, issue #1785 #1935

Closed
wants to merge 3 commits into from

Conversation

kisljak
Copy link

@kisljak kisljak commented Mar 6, 2025

Proposed changes

Fixes #1785

Implementation of mx.repeat for variable number of repetitions. I also updated checking of axis in a method tile, which was only using duplicit code already implemented elsewhere.

Finally I added tests to check the new functionality

Checklist

Put an x in the boxes that apply.

  • I have read the CONTRIBUTING document
  • I have run pre-commit run --all-files to format my code / installed pre-commit prior to committing changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the necessary documentation (if needed)

@kisljak kisljak changed the title mx.repeat with variable number of repetitions mx.repeat with variable number of repetitions, issue #1785 Mar 6, 2025
@kisljak kisljak changed the title mx.repeat with variable number of repetitions, issue #1785 mx.repeat with variable number of repetitions, issue https://github.com/ml-explore/mlx/issues/1785 Mar 6, 2025
@kisljak kisljak changed the title mx.repeat with variable number of repetitions, issue https://github.com/ml-explore/mlx/issues/1785 mx.repeat with variable number of repetitions, issue #1785 Mar 6, 2025
@angeloskath
Copy link
Member

MLX doesn't support ops with a data dependent output size yet unfortunately. This op assumes that the repeats is a vector available when called so it would not solve the linked issue which requires an array as the repeats argument.

I will close it but feel to post on the issue for more details.

@angeloskath angeloskath closed this Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] mx.repeat with variable number of repetitions
2 participants