Skip to content
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

Always load custom op registrations #3265

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

Conversation

jwfromm
Copy link
Contributor

@jwfromm jwfromm commented Oct 22, 2024

Summary:
X-link: https://github.com/facebookresearch/FBGEMM/pull/366

Since some custom operators now register shape functions in python, we can just directly import those registrations rather than hide them behind the OSS vs fbcode flag. This should fix a few CI issues introduced by recently added tests.

Differential Revision: D64770837

Copy link

netlify bot commented Oct 22, 2024

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit 62d74c4
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/67194a0a1c306a0008eb8519
😎 Deploy Preview https://deploy-preview-3265--pytorch-fbgemm-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64770837

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64770837

jwfromm added a commit to jwfromm/FBGEMM that referenced this pull request Oct 22, 2024
Summary:
Pull Request resolved: pytorch#3265

X-link: facebookresearch/FBGEMM#366

Since some custom operators now register shape functions in python, we can just directly import those registrations rather than hide them behind the OSS vs fbcode flag. This should fix a few CI issues introduced by recently added tests.

Differential Revision: D64770837
jwfromm added a commit to jwfromm/FBGEMM that referenced this pull request Oct 22, 2024
Summary:

X-link: facebookresearch/FBGEMM#366

Since some custom operators now register shape functions in python, we can just directly import those registrations rather than hide them behind the OSS vs fbcode flag. This should fix a few CI issues introduced by recently added tests.

Reviewed By: spcyppt

Differential Revision: D64770837
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64770837

jwfromm added a commit to jwfromm/FBGEMM that referenced this pull request Oct 22, 2024
Summary:

X-link: facebookresearch/FBGEMM#366

Since some custom operators now register shape functions in python, we can just directly import those registrations rather than hide them behind the OSS vs fbcode flag. This should fix a few CI issues introduced by recently added tests.

Reviewed By: spcyppt

Differential Revision: D64770837
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64770837

jwfromm added a commit to jwfromm/FBGEMM that referenced this pull request Oct 22, 2024
Summary:

X-link: facebookresearch/FBGEMM#366

Since some custom operators now register shape functions in python, we can clean up the initialization of the fbgemm gen_ai module to use the new operator files. This diff does that refactor, adds a helper function to load libraries in fbcode or oss, and adds a few additional operator files for other custom ops.

Next, we should do full shape registration for those other custom operator libraries.

Reviewed By: spcyppt

Differential Revision: D64770837
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64770837

jwfromm added a commit to jwfromm/FBGEMM that referenced this pull request Oct 22, 2024
Summary:

X-link: facebookresearch/FBGEMM#366

Since some custom operators now register shape functions in python, we can clean up the initialization of the fbgemm gen_ai module to use the new operator files. This diff does that refactor, adds a helper function to load libraries in fbcode or oss, and adds a few additional operator files for other custom ops.

Next, we should do full shape registration for those other custom operator libraries.

Reviewed By: spcyppt

Differential Revision: D64770837
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64770837

jwfromm pushed a commit to jwfromm/FBGEMM that referenced this pull request Oct 22, 2024
Summary:

X-link: facebookresearch/FBGEMM#366

Since some custom operators now register shape functions in python, we can clean up the initialization of the fbgemm gen_ai module to use the new operator files. This diff does that refactor, adds a helper function to load libraries in fbcode or oss, and adds a few additional operator files for other custom ops.

Next, we should do full shape registration for those other custom operator libraries.

Reviewed By: spcyppt

Differential Revision: D64770837
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64770837

jwfromm added a commit to jwfromm/FBGEMM that referenced this pull request Oct 23, 2024
Summary:

X-link: facebookresearch/FBGEMM#366

Since some custom operators now register shape functions in python, we can clean up the initialization of the fbgemm gen_ai module to use the new operator files. This diff does that refactor, adds a helper function to load libraries in fbcode or oss, and adds a few additional operator files for other custom ops.

Next, we should do full shape registration for those other custom operator libraries.

Reviewed By: spcyppt

Differential Revision: D64770837
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64770837

jwfromm added a commit to jwfromm/FBGEMM that referenced this pull request Oct 23, 2024
Summary:

X-link: facebookresearch/FBGEMM#366

Since some custom operators now register shape functions in python, we can clean up the initialization of the fbgemm gen_ai module to use the new operator files. This diff does that refactor, adds a helper function to load libraries in fbcode or oss, and adds a few additional operator files for other custom ops.

Next, we should do full shape registration for those other custom operator libraries.

Reviewed By: spcyppt

Differential Revision: D64770837
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64770837

Summary:

X-link: facebookresearch/FBGEMM#366

Since some custom operators now register shape functions in python, we can clean up the initialization of the fbgemm gen_ai module to use the new operator files. This diff does that refactor, adds a helper function to load libraries in fbcode or oss, and adds a few additional operator files for other custom ops.

Next, we should do full shape registration for those other custom operator libraries.

Reviewed By: jianyuh, spcyppt

Differential Revision: D64770837
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64770837

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants