(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.
Proposed changes
Address #1072
Checklist
Put an
x
in the boxes that apply.pre-commit run --all-files
to format my code / installed pre-commit prior to committing changes