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

[ET-VK] Remove Functions.h/cpp #2245

Closed
wants to merge 1 commit into from

Conversation

jorgep31415
Copy link
Contributor

@jorgep31415 jorgep31415 commented Mar 4, 2024

Stack from ghstack (oldest at bottom):

In D53982443, OperatorRegistry.h/cpp and Functions.h/cpp were both introduced, as they were split across the PT and ET repos, but now both are in ET.

OperatorRegistry.cpp

Here, we see all our operators. OPERATOR_ENTRY maps from Vulkan Dialect op name to the OpFunction, which have an op-specific name. Note that all OpFunction carry the same function signature.

Functions.h/cpp -> Arithmetic.h/cpp

We don't need another place to see all our operators. They will each reference one ops/impl file, so we group them accordingly in their ops/impl file.

Nit

Also, sort add_arithmetic_node() declarations according to their execution order.

Differential Revision: D54370467

In D53982443, OperatorRegistry.h/cpp and Functions.h/cpp were both introduced, as they were split across the PT and ET repos, but now both are in ET.

## OperatorRegistry.cpp
Here, we see all our operators. OPERATOR_ENTRY maps from Vulkan Dialect op name to the OpFunction, which have an op-specific name. Note that all OpFunction carry the same function signature.

## Functions.h/cpp -> Arithmetic.h/cpp
We don't need another place to see all our operators. They will each reference one ops/impl file, so we group them accordingly in their ops/impl file.

## Nit
Also, sort `add_arithmetic_node()` declarations according to their execution order.

Differential Revision: [D54370467](https://our.internmc.facebook.com/intern/diff/D54370467/)

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Mar 4, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/2245

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure

As of commit bc969fc with merge base 566209d (image):

NEW FAILURE - The following job has failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 4, 2024
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in dfb5f51.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants