-
Beta Was this translation helpful? Give feedback.
Answered by
awni
Feb 2, 2025
Replies: 1 comment 3 replies
-
You can't vmap functions which take non- def _ism(x, score):
...
def vmappable_ism(x):
return _ism(x, score)
mx.vmap(vmappable_ism, ...) |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
dasayan05
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can't vmap functions which take non-
mx.array
inputs. In your case that would be the callableS
. You can instead use a closure orfunctools.partial
. For example with a closure: