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

add the shape label like in python. #178

Open
demhademha opened this issue Dec 26, 2024 · 1 comment
Open

add the shape label like in python. #178

demhademha opened this issue Dec 26, 2024 · 1 comment

Comments

@demhademha
Copy link

The Python API can be used both ways:

mx.random.uniform(0, 1, (3, 3))
mx.random.uniform(0, 1, shape=(3, 3))

we should add the shape label for consistancy and clarity.

@davidkoski
Copy link
Collaborator

The Swift API consistently (I think) omits the shape label everywhere when shape is required. In general python allows labels for everything but can omit them if they are not required (it is basically a dictionary of args) so this isn't something we can do in swift.

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

No branches or pull requests

2 participants