[ET Device Support] Define AOT device copy ops registry#18728
Conversation
Define et_copy._h2d_copy and et_copy._d2h_copy custom ops for explicit host-to-device and device-to-host data transfer at delegate boundaries. Follows dim_order_ops_registry.py pattern: - Defines functional and out variants for both ops - Tracing implementations: clone/copy (CPU-only during tracing) - Registered via torch.library Differential Revision: [D99636779](https://our.internmc.facebook.com/intern/diff/D99636779/) [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/18728
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 40 Pending, 4 Unrelated Failures, 1 Unclassified FailureAs of commit fd5b5c3 with merge base a83e7c4 ( NEW FAILURE - The following job has failed:
UNCLASSIFIED FAILURE - DrCI could not classify the following job because the workflow did not run on the merge base. The failure may be pre-existing on trunk or introduced by this PR:
FLAKY - The following job failed but was likely due to flakiness present on trunk:
BROKEN TRUNK - The following jobs failed but was present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
Define et_copy._h2d_copy and et_copy._d2h_copy custom ops for explicit host-to-device and device-to-host data transfer at delegate boundaries. Follows dim_order_ops_registry.py pattern: - Defines functional and out variants for both ops - Tracing implementations: clone/copy (CPU-only during tracing) - Registered via torch.library Differential Revision: [D99636779](https://our.internmc.facebook.com/intern/diff/D99636779/) [ghstack-poisoned]
digantdesai
left a comment
There was a problem hiding this comment.
Review automatically exported from Phabricator review in Meta.
Define et_copy._h2d_copy and et_copy._d2h_copy custom ops for explicit host-to-device and device-to-host data transfer at delegate boundaries. Follows dim_order_ops_registry.py pattern: - Defines functional and out variants for both ops - Tracing implementations: clone/copy (CPU-only during tracing) - Registered via torch.library Differential Revision: [D99636779](https://our.internmc.facebook.com/intern/diff/D99636779/) [ghstack-poisoned]
JacobSzwejbka
left a comment
There was a problem hiding this comment.
Review automatically exported from Phabricator review in Meta.
Pull Request resolved: #18728 Define et_copy._h2d_copy and et_copy._d2h_copy custom ops for explicit host-to-device and device-to-host data transfer at delegate boundaries. Follows dim_order_ops_registry.py pattern: - Defines functional and out variants for both ops - Tracing implementations: clone/copy (CPU-only during tracing) - Registered via torch.library ghstack-source-id: 383717558 @exported-using-ghexport Differential Revision: [D99636779](https://our.internmc.facebook.com/intern/diff/D99636779/)
Pull Request resolved: #18728 Define et_copy._h2d_copy and et_copy._d2h_copy custom ops for explicit host-to-device and device-to-host data transfer at delegate boundaries. Follows dim_order_ops_registry.py pattern: - Defines functional and out variants for both ops - Tracing implementations: clone/copy (CPU-only during tracing) - Registered via torch.library ghstack-source-id: 384845666 @exported-using-ghexport Differential Revision: [D99636779](https://our.internmc.facebook.com/intern/diff/D99636779/)
Pull Request resolved: #18728 Define et_copy._h2d_copy and et_copy._d2h_copy custom ops for explicit host-to-device and device-to-host data transfer at delegate boundaries. Follows dim_order_ops_registry.py pattern: - Defines functional and out variants for both ops - Tracing implementations: clone/copy (CPU-only during tracing) - Registered via torch.library ghstack-source-id: 385025128 @exported-using-ghexport Differential Revision: [D99636779](https://our.internmc.facebook.com/intern/diff/D99636779/)
722c19d
into
gh/gasoonjia/158/base
clone #18728 due to bot crash
Stack from ghstack (oldest at bottom):
Define et_copy._h2d_copy and et_copy._d2h_copy custom ops for explicit
host-to-device and device-to-host data transfer at delegate boundaries.
Follows dim_order_ops_registry.py pattern:
Differential Revision: D99636779