Skip to content

vmap with static (optional) keyword-arguments #24622

Answered by jakevdp
adtzlr asked this question in Ideas
Discussion options

You must be logged in to vote

That's a nice approach! It does a good job working around what I think is the fundamental issue of vmap: that it returns a wrapper that treats positional and keyword arguments differently. The "real" fix would be to modernize the vmap API (similar to the work a while ago with jit to handle both static_argnames and static_argnums in a uniform way), but that's not something anybody has thought deeply about yet I think.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by adtzlr
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants