-
Notifications
You must be signed in to change notification settings - Fork 25.5k
Mild refactor of native_functions.yaml dispatch parsing #66109
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
Conversation
This refactor is no longer necessary for ufunc codegen, as I changed the format of ufuncs to not directly be inserted into the 'dispatch' key, but I think the refactored code here is better. The basic concept is to directly construct BackendMetadata as we are parsing entries of the dispatch dictionary, rather than post facto creating them later. This centralizes the compute and means that the creation of the backend index is just a simple reindexing by operator name (nothing nontrivial). Signed-off-by: Edward Z. Yang <ezyang@fb.com> [ghstack-poisoned]
CI Flow Status⚛️ CI FlowRuleset - Version:
You can add a comment to the PR and tag @pytorchbot with the following commands: # ciflow rerun, "ciflow/default" will always be added automatically
@pytorchbot ciflow rerun
# ciflow rerun with additional labels "-l <ciflow/label_name>", which is equivalent to adding these labels manually and trigger the rerun
@pytorchbot ciflow rerun -l ciflow/scheduled -l ciflow/slow For more information, please take a look at the CI Flow Wiki. |
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit 1d7d5f6 (more details on the Dr. CI page):
2 failures not recognized by patterns:
This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
@ezyang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
This refactor is no longer necessary for ufunc codegen, as I changed the format of ufuncs to not directly be inserted into the 'dispatch' key, but I think the refactored code here is better. The basic concept is to directly construct BackendMetadata as we are parsing entries of the dispatch dictionary, rather than post facto creating them later. This centralizes the compute and means that the creation of the backend index is just a simple reindexing by operator name (nothing nontrivial). Signed-off-by: Edward Z. Yang <ezyang@fb.com> Differential Revision: [D31385760](https://our.internmc.facebook.com/intern/diff/D31385760) [ghstack-poisoned]
@ezyang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
This refactor is no longer necessary for ufunc codegen, as I changed the format of ufuncs to not directly be inserted into the 'dispatch' key, but I think the refactored code here is better. The basic concept is to directly construct BackendMetadata as we are parsing entries of the dispatch dictionary, rather than post facto creating them later. This centralizes the compute and means that the creation of the backend index is just a simple reindexing by operator name (nothing nontrivial). Signed-off-by: Edward Z. Yang <ezyangfb.com> Differential Revision: [D31385760](https://our.internmc.facebook.com/intern/diff/D31385760) [ghstack-poisoned]
@ezyang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
This refactor is no longer necessary for ufunc codegen, as I changed the format of ufuncs to not directly be inserted into the 'dispatch' key, but I think the refactored code here is better. The basic concept is to directly construct BackendMetadata as we are parsing entries of the dispatch dictionary, rather than post facto creating them later. This centralizes the compute and means that the creation of the backend index is just a simple reindexing by operator name (nothing nontrivial). Signed-off-by: Edward Z. Yang <ezyangfb.com> Differential Revision: [D31385760](https://our.internmc.facebook.com/intern/diff/D31385760) [ghstack-poisoned]
@ezyang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
This refactor is no longer necessary for ufunc codegen, as I changed the format of ufuncs to not directly be inserted into the 'dispatch' key, but I think the refactored code here is better. The basic concept is to directly construct BackendMetadata as we are parsing entries of the dispatch dictionary, rather than post facto creating them later. This centralizes the compute and means that the creation of the backend index is just a simple reindexing by operator name (nothing nontrivial). Signed-off-by: Edward Z. Yang <ezyangfb.com> Differential Revision: [D31385760](https://our.internmc.facebook.com/intern/diff/D31385760) [ghstack-poisoned]
This refactor is no longer necessary for ufunc codegen, as I changed the format of ufuncs to not directly be inserted into the 'dispatch' key, but I think the refactored code here is better. The basic concept is to directly construct BackendMetadata as we are parsing entries of the dispatch dictionary, rather than post facto creating them later. This centralizes the compute and means that the creation of the backend index is just a simple reindexing by operator name (nothing nontrivial). Signed-off-by: Edward Z. Yang <ezyangfb.com> Differential Revision: [D31385760](https://our.internmc.facebook.com/intern/diff/D31385760) [ghstack-poisoned]
@ezyang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
This refactor is no longer necessary for ufunc codegen, as I changed the format of ufuncs to not directly be inserted into the 'dispatch' key, but I think the refactored code here is better. The basic concept is to directly construct BackendMetadata as we are parsing entries of the dispatch dictionary, rather than post facto creating them later. This centralizes the compute and means that the creation of the backend index is just a simple reindexing by operator name (nothing nontrivial). Signed-off-by: Edward Z. Yang <ezyangfb.com> Differential Revision: [D31385760](https://our.internmc.facebook.com/intern/diff/D31385760) [ghstack-poisoned]
Summary: Pull Request resolved: #66109 This refactor is no longer necessary for ufunc codegen, as I changed the format of ufuncs to not directly be inserted into the 'dispatch' key, but I think the refactored code here is better. The basic concept is to directly construct BackendMetadata as we are parsing entries of the dispatch dictionary, rather than post facto creating them later. This centralizes the compute and means that the creation of the backend index is just a simple reindexing by operator name (nothing nontrivial). Signed-off-by: Edward Z. Yang <ezyang@fb.com> Test Plan: Imported from OSS Reviewed By: bdhirsh Differential Revision: D31385760 Pulled By: ezyang fbshipit-source-id: 4fcb491ba025d2aa6fd356586b57affb97a507fc
Hey @ezyang. |
Summary: Pull Request resolved: pytorch/pytorch#66109 This refactor is no longer necessary for ufunc codegen, as I changed the format of ufuncs to not directly be inserted into the 'dispatch' key, but I think the refactored code here is better. The basic concept is to directly construct BackendMetadata as we are parsing entries of the dispatch dictionary, rather than post facto creating them later. This centralizes the compute and means that the creation of the backend index is just a simple reindexing by operator name (nothing nontrivial). Signed-off-by: Edward Z. Yang <ezyang@fb.com> Test Plan: Imported from OSS Reviewed By: bdhirsh Differential Revision: D31385760 Pulled By: ezyang fbshipit-source-id: 4fcb491ba025d2aa6fd356586b57affb97a507fc (cherry picked from commit 21c93d41996120697f81168650b4f4b999d6902a)
Summary: Pull Request resolved: pytorch/pytorch#66109 This refactor is no longer necessary for ufunc codegen, as I changed the format of ufuncs to not directly be inserted into the 'dispatch' key, but I think the refactored code here is better. The basic concept is to directly construct BackendMetadata as we are parsing entries of the dispatch dictionary, rather than post facto creating them later. This centralizes the compute and means that the creation of the backend index is just a simple reindexing by operator name (nothing nontrivial). Signed-off-by: Edward Z. Yang <ezyang@fb.com> Test Plan: Imported from OSS Reviewed By: bdhirsh Differential Revision: D31385760 Pulled By: ezyang fbshipit-source-id: 4fcb491ba025d2aa6fd356586b57affb97a507fc (cherry picked from commit 21c93d41996120697f81168650b4f4b999d6902a)
Summary: Pull Request resolved: pytorch/pytorch#66109 This refactor is no longer necessary for ufunc codegen, as I changed the format of ufuncs to not directly be inserted into the 'dispatch' key, but I think the refactored code here is better. The basic concept is to directly construct BackendMetadata as we are parsing entries of the dispatch dictionary, rather than post facto creating them later. This centralizes the compute and means that the creation of the backend index is just a simple reindexing by operator name (nothing nontrivial). Signed-off-by: Edward Z. Yang <ezyang@fb.com> Test Plan: Imported from OSS Reviewed By: bdhirsh Differential Revision: D31385760 Pulled By: ezyang fbshipit-source-id: 4fcb491ba025d2aa6fd356586b57affb97a507fc (cherry picked from commit 21c93d41996120697f81168650b4f4b999d6902a)
Summary: Pull Request resolved: pytorch/pytorch#66109 This refactor is no longer necessary for ufunc codegen, as I changed the format of ufuncs to not directly be inserted into the 'dispatch' key, but I think the refactored code here is better. The basic concept is to directly construct BackendMetadata as we are parsing entries of the dispatch dictionary, rather than post facto creating them later. This centralizes the compute and means that the creation of the backend index is just a simple reindexing by operator name (nothing nontrivial). Signed-off-by: Edward Z. Yang <ezyang@fb.com> Test Plan: Imported from OSS Reviewed By: bdhirsh Differential Revision: D31385760 Pulled By: ezyang fbshipit-source-id: 4fcb491ba025d2aa6fd356586b57affb97a507fc (cherry picked from commit 21c93d41996120697f81168650b4f4b999d6902a)
Summary: Pull Request resolved: pytorch/pytorch#66109 This refactor is no longer necessary for ufunc codegen, as I changed the format of ufuncs to not directly be inserted into the 'dispatch' key, but I think the refactored code here is better. The basic concept is to directly construct BackendMetadata as we are parsing entries of the dispatch dictionary, rather than post facto creating them later. This centralizes the compute and means that the creation of the backend index is just a simple reindexing by operator name (nothing nontrivial). Signed-off-by: Edward Z. Yang <ezyang@fb.com> Test Plan: Imported from OSS Reviewed By: bdhirsh Differential Revision: D31385760 Pulled By: ezyang fbshipit-source-id: 4fcb491ba025d2aa6fd356586b57affb97a507fc (cherry picked from commit 21c93d41996120697f81168650b4f4b999d6902a)
Summary: Pull Request resolved: pytorch/pytorch#66109 This refactor is no longer necessary for ufunc codegen, as I changed the format of ufuncs to not directly be inserted into the 'dispatch' key, but I think the refactored code here is better. The basic concept is to directly construct BackendMetadata as we are parsing entries of the dispatch dictionary, rather than post facto creating them later. This centralizes the compute and means that the creation of the backend index is just a simple reindexing by operator name (nothing nontrivial). Signed-off-by: Edward Z. Yang <ezyang@fb.com> Test Plan: Imported from OSS Reviewed By: bdhirsh Differential Revision: D31385760 Pulled By: ezyang fbshipit-source-id: 4fcb491ba025d2aa6fd356586b57affb97a507fc (cherry picked from commit 21c93d41996120697f81168650b4f4b999d6902a)
Summary: Pull Request resolved: pytorch/pytorch#66109 This refactor is no longer necessary for ufunc codegen, as I changed the format of ufuncs to not directly be inserted into the 'dispatch' key, but I think the refactored code here is better. The basic concept is to directly construct BackendMetadata as we are parsing entries of the dispatch dictionary, rather than post facto creating them later. This centralizes the compute and means that the creation of the backend index is just a simple reindexing by operator name (nothing nontrivial). Signed-off-by: Edward Z. Yang <ezyang@fb.com> Test Plan: Imported from OSS Reviewed By: bdhirsh Differential Revision: D31385760 Pulled By: ezyang fbshipit-source-id: 4fcb491ba025d2aa6fd356586b57affb97a507fc (cherry picked from commit 21c93d41996120697f81168650b4f4b999d6902a)
Summary: Pull Request resolved: pytorch/pytorch#66109 This refactor is no longer necessary for ufunc codegen, as I changed the format of ufuncs to not directly be inserted into the 'dispatch' key, but I think the refactored code here is better. The basic concept is to directly construct BackendMetadata as we are parsing entries of the dispatch dictionary, rather than post facto creating them later. This centralizes the compute and means that the creation of the backend index is just a simple reindexing by operator name (nothing nontrivial). Signed-off-by: Edward Z. Yang <ezyang@fb.com> Test Plan: Imported from OSS Reviewed By: bdhirsh Differential Revision: D31385760 Pulled By: ezyang fbshipit-source-id: 4fcb491ba025d2aa6fd356586b57affb97a507fc (cherry picked from commit 21c93d41996120697f81168650b4f4b999d6902a)
Summary: Pull Request resolved: pytorch/pytorch#66109 This refactor is no longer necessary for ufunc codegen, as I changed the format of ufuncs to not directly be inserted into the 'dispatch' key, but I think the refactored code here is better. The basic concept is to directly construct BackendMetadata as we are parsing entries of the dispatch dictionary, rather than post facto creating them later. This centralizes the compute and means that the creation of the backend index is just a simple reindexing by operator name (nothing nontrivial). Signed-off-by: Edward Z. Yang <ezyang@fb.com> Test Plan: Imported from OSS Reviewed By: bdhirsh Differential Revision: D31385760 Pulled By: ezyang fbshipit-source-id: 4fcb491ba025d2aa6fd356586b57affb97a507fc (cherry picked from commit 21c93d41996120697f81168650b4f4b999d6902a)
Summary: Pull Request resolved: pytorch/pytorch#66109 This refactor is no longer necessary for ufunc codegen, as I changed the format of ufuncs to not directly be inserted into the 'dispatch' key, but I think the refactored code here is better. The basic concept is to directly construct BackendMetadata as we are parsing entries of the dispatch dictionary, rather than post facto creating them later. This centralizes the compute and means that the creation of the backend index is just a simple reindexing by operator name (nothing nontrivial). Signed-off-by: Edward Z. Yang <ezyang@fb.com> Test Plan: Imported from OSS Reviewed By: bdhirsh Differential Revision: D31385760 Pulled By: ezyang fbshipit-source-id: 4fcb491ba025d2aa6fd356586b57affb97a507fc (cherry picked from commit 21c93d41996120697f81168650b4f4b999d6902a)
Summary: Pull Request resolved: pytorch/pytorch#66109 This refactor is no longer necessary for ufunc codegen, as I changed the format of ufuncs to not directly be inserted into the 'dispatch' key, but I think the refactored code here is better. The basic concept is to directly construct BackendMetadata as we are parsing entries of the dispatch dictionary, rather than post facto creating them later. This centralizes the compute and means that the creation of the backend index is just a simple reindexing by operator name (nothing nontrivial). Signed-off-by: Edward Z. Yang <ezyang@fb.com> Test Plan: Imported from OSS Reviewed By: bdhirsh Differential Revision: D31385760 Pulled By: ezyang fbshipit-source-id: 4fcb491ba025d2aa6fd356586b57affb97a507fc (cherry picked from commit 21c93d41996120697f81168650b4f4b999d6902a)
Stack from ghstack:
This refactor is no longer necessary for ufunc codegen, as I changed
the format of ufuncs to not directly be inserted into the 'dispatch'
key, but I think the refactored code here is better. The basic concept
is to directly construct BackendMetadata as we are parsing entries of
the dispatch dictionary, rather than post facto creating them later.
This centralizes the compute and means that the creation of the backend index
is just a simple reindexing by operator name (nothing nontrivial).
Signed-off-by: Edward Z. Yang ezyang@fb.com
Differential Revision: D31385760