Skip to content

Adding types to vmap decorator/adapter#32

Open
mishmish66 wants to merge 2 commits intofferflo:masterfrom
mishmish66:type_vmap
Open

Adding types to vmap decorator/adapter#32
mishmish66 wants to merge 2 commits intofferflo:masterfrom
mishmish66:type_vmap

Conversation

@mishmish66
Copy link
Copy Markdown

@mishmish66 mishmish66 commented Apr 1, 2026

Very nice tool! Thank you so much for building this.

This is an initial idea for a way to make the vmapping functionality work better with typecheckers.

Likely needs tweaks but I figured I'd put it here so we can discuss it, and I created a discussion thread #31

@mishmish66
Copy link
Copy Markdown
Author

Since decorators cannot add kwargs as per PEP 612 it's not possible to have the adapt_with_vmap decorator support manual dim specifications.

A potential workaround is to accept a positional dict with dict[str, int] type appended to the end of the args with param size specifications?

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

Successfully merging this pull request may close these issues.

1 participant