Skip to content

[ET-VK][EZ] Refactor graph directory structure #2151

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

Closed
wants to merge 1 commit into from

Conversation

jorgep31415
Copy link
Contributor

@jorgep31415 jorgep31415 commented Feb 27, 2024

Stack from ghstack (oldest at bottom):

I always get lost in the current structure, so we

  1. introduce containers/, ops/, and ops/impl/ to flatten the directory, and
  2. fix some include header ordering.
[[email protected] /data/users/jorgep31415/fbsource/fbcode/executorch/backends/vulkan/runtime/graph (4f468a807)]$ tree
.
├── ComputeGraph.cpp
├── ComputeGraph.h
├── containers
│   ├── Constant.cpp
│   ├── Constant.h
│   ├── SharedObject.cpp
│   ├── SharedObject.h
│   ├── Types.cpp
│   ├── Types.h
│   └── Value.h
├── GraphConfig.h
└── ops
    ├── ExecuteNode.h
    ├── Functions.cpp
    ├── Functions.h
    ├── impl
    │   ├── Arithmetic.cpp
    │   ├── Arithmetic.h
    │   ├── Copy.cpp
    │   ├── Copy.h
    │   ├── Staging.cpp
    │   └── Staging.h
    ├── OperatorRegistry.cpp
    ├── OperatorRegistry.h
    └── PrepackNode.h

3 directories, 22 files

Differential Revision: D54272391

I always get lost in the current structure, so we
1. introduce `containers/`, `ops/`, and `ops/impl/` to flatten the directory, and
2. fix some include header ordering.

```
[[email protected] /data/users/jorgep31415/fbsource/fbcode/executorch/backends/vulkan/runtime/graph (4f468a807)]$ tree
.
├── ComputeGraph.cpp
├── ComputeGraph.h
├── containers
│   ├── Constant.cpp
│   ├── Constant.h
│   ├── SharedObject.cpp
│   ├── SharedObject.h
│   ├── Types.cpp
│   ├── Types.h
│   └── Value.h
├── GraphConfig.h
└── ops
    ├── ExecuteNode.h
    ├── Functions.cpp
    ├── Functions.h
    ├── impl
    │   ├── Arithmetic.cpp
    │   ├── Arithmetic.h
    │   ├── Copy.cpp
    │   ├── Copy.h
    │   ├── Staging.cpp
    │   └── Staging.h
    ├── OperatorRegistry.cpp
    ├── OperatorRegistry.h
    └── PrepackNode.h

3 directories, 22 files
```

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

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Feb 27, 2024

🔗 Helpful Links

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

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

✅ You can merge normally! (1 Unrelated Failure)

As of commit 758d6d9 with merge base 1d74652 (image):

FLAKY - The following job failed but was likely due to flakiness present on trunk:

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 Feb 27, 2024
jorgep31415 added a commit that referenced this pull request Feb 27, 2024
I always get lost in the current structure, so we
1. introduce `containers/`, `ops/`, and `ops/impl/` to flatten the directory, and
2. fix some include header ordering.

```
[jorgep31415devvm15882.vll0 /data/users/jorgep31415/fbsource/fbcode/executorch/backends/vulkan/runtime/graph (4f468a807)]$ tree
.
├── ComputeGraph.cpp
├── ComputeGraph.h
├── containers
│   ├── Constant.cpp
│   ├── Constant.h
│   ├── SharedObject.cpp
│   ├── SharedObject.h
│   ├── Types.cpp
│   ├── Types.h
│   └── Value.h
├── GraphConfig.h
└── ops
    ├── ExecuteNode.h
    ├── Functions.cpp
    ├── Functions.h
    ├── impl
    │   ├── Arithmetic.cpp
    │   ├── Arithmetic.h
    │   ├── Copy.cpp
    │   ├── Copy.h
    │   ├── Staging.cpp
    │   └── Staging.h
    ├── OperatorRegistry.cpp
    ├── OperatorRegistry.h
    └── PrepackNode.h

3 directories, 22 files
```

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

ghstack-source-id: 216697508
Pull Request resolved: #2151
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 8aca441.

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