ml-explore / mlx

MLX: An array framework for Apple silicon
https://ml-explore.github.io/mlx/
MIT License
14.83k stars 845 forks source link

add keyword positonal #1081

Closed IamShubhamGupto closed 1 week ago

IamShubhamGupto commented 1 week ago

Proposed changes

Address #1072

(mlx-dev) shubham@Shubhams-MBP mlx % python dummy.py                                   
Traceback (most recent call last):
  File "/Users/shubham/Documents/workspace/forks/mlx/dummy.py", line 5, in <module>
    xent_grad(logits=a, targets=mx.array(0))
ValueError: [grad] Can't compute the gradient of argument index 0 because the function is called with only 0 positional arguments.

Checklist

Put an x in the boxes that apply.