Skip to content

Add support for callable in torchax.interop.JittableModule.functional_call in the first parameter #9451

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zmelumian972
Copy link
Contributor

Currently when working with functional call in JittableModule, it can only work with internal methods inside the module

this PR allows the user to define a callable that will have the model inserted as the first argument (similar to 'self' mechanism in python)

this allows torchax to JIT torch procedures outside the scope of the module

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.

3 participants