-
Notifications
You must be signed in to change notification settings - Fork 106
[hyperactor] general in-proc ActorRef -> ActorHandle downcasting #350
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
Provide a general purpose mechanism for downcasting any local (in-proc) ActorRef<A> to its corresponding ActorHandle<A>. This allows these references to be coordinated externally, but for the actors to communicate locally (including using handlers that aren't exported, e.g., because they may not contain serializable messages). The intent is to use this in the tensor engine, to allow the controller to instruct actors to coordinate locally, passing objects like tensor references directly. This required building a general instance registration mechanism, which we can use to replace the ledger in a follow-up change. Differential Revision: [D77377382](https://our.internmc.facebook.com/intern/diff/D77377382/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D77377382/)! [ghstack-poisoned]
Provide a general purpose mechanism for downcasting any local (in-proc) ActorRef<A> to its corresponding ActorHandle<A>. This allows these references to be coordinated externally, but for the actors to communicate locally (including using handlers that aren't exported, e.g., because they may not contain serializable messages). The intent is to use this in the tensor engine, to allow the controller to instruct actors to coordinate locally, passing objects like tensor references directly. This required building a general instance registration mechanism, which we can use to replace the ledger in a follow-up change. Differential Revision: [D77377382](https://our.internmc.facebook.com/intern/diff/D77377382/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D77377382/)! ghstack-source-id: 292858405 Pull Request resolved: #350
|
This pull request was exported from Phabricator. Differential Revision: D77377382 |
…asting" Provide a general purpose mechanism for downcasting any local (in-proc) ActorRef<A> to its corresponding ActorHandle<A>. This allows these references to be coordinated externally, but for the actors to communicate locally (including using handlers that aren't exported, e.g., because they may not contain serializable messages). The intent is to use this in the tensor engine, to allow the controller to instruct actors to coordinate locally, passing objects like tensor references directly. This required building a general instance registration mechanism, which we can use to replace the ledger in a follow-up change. Differential Revision: [D77377382](https://our.internmc.facebook.com/intern/diff/D77377382/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D77377382/)! [ghstack-poisoned]
Pull Request resolved: #350 Provide a general purpose mechanism for downcasting any local (in-proc) ActorRef<A> to its corresponding ActorHandle<A>. This allows these references to be coordinated externally, but for the actors to communicate locally (including using handlers that aren't exported, e.g., because they may not contain serializable messages). The intent is to use this in the tensor engine, to allow the controller to instruct actors to coordinate locally, passing objects like tensor references directly. This required building a general instance registration mechanism, which we can use to replace the ledger in a follow-up change. Differential Revision: [D77377382](https://our.internmc.facebook.com/intern/diff/D77377382/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D77377382/)! ghstack-source-id: 292911240
|
This pull request was exported from Phabricator. Differential Revision: D77377382 |
…asting" Provide a general purpose mechanism for downcasting any local (in-proc) ActorRef<A> to its corresponding ActorHandle<A>. This allows these references to be coordinated externally, but for the actors to communicate locally (including using handlers that aren't exported, e.g., because they may not contain serializable messages). The intent is to use this in the tensor engine, to allow the controller to instruct actors to coordinate locally, passing objects like tensor references directly. This required building a general instance registration mechanism, which we can use to replace the ledger in a follow-up change. Differential Revision: [D77377382](https://our.internmc.facebook.com/intern/diff/D77377382/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D77377382/)! [ghstack-poisoned]
Pull Request resolved: #350 Provide a general purpose mechanism for downcasting any local (in-proc) ActorRef<A> to its corresponding ActorHandle<A>. This allows these references to be coordinated externally, but for the actors to communicate locally (including using handlers that aren't exported, e.g., because they may not contain serializable messages). The intent is to use this in the tensor engine, to allow the controller to instruct actors to coordinate locally, passing objects like tensor references directly. This required building a general instance registration mechanism, which we can use to replace the ledger in a follow-up change. ghstack-source-id: 292922123 Differential Revision: [D77377382](https://our.internmc.facebook.com/intern/diff/D77377382/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D77377382/)!
|
This pull request was exported from Phabricator. Differential Revision: D77377382 |
…asting" Provide a general purpose mechanism for downcasting any local (in-proc) ActorRef<A> to its corresponding ActorHandle<A>. This allows these references to be coordinated externally, but for the actors to communicate locally (including using handlers that aren't exported, e.g., because they may not contain serializable messages). The intent is to use this in the tensor engine, to allow the controller to instruct actors to coordinate locally, passing objects like tensor references directly. This required building a general instance registration mechanism, which we can use to replace the ledger in a follow-up change. Differential Revision: [D77377382](https://our.internmc.facebook.com/intern/diff/D77377382/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D77377382/)! [ghstack-poisoned]
|
This pull request was exported from Phabricator. Differential Revision: D77377382 |
…asting" Provide a general purpose mechanism for downcasting any local (in-proc) ActorRef<A> to its corresponding ActorHandle<A>. This allows these references to be coordinated externally, but for the actors to communicate locally (including using handlers that aren't exported, e.g., because they may not contain serializable messages). The intent is to use this in the tensor engine, to allow the controller to instruct actors to coordinate locally, passing objects like tensor references directly. This required building a general instance registration mechanism, which we can use to replace the ledger in a follow-up change. Differential Revision: [D77377382](https://our.internmc.facebook.com/intern/diff/D77377382/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D77377382/)! [ghstack-poisoned]
|
This pull request was exported from Phabricator. Differential Revision: D77377382 |
|
This pull request has been merged in 012342d. |
Stack from ghstack (oldest at bottom):
Provide a general purpose mechanism for downcasting any local (in-proc) ActorRef to its corresponding ActorHandle. This allows these references to be coordinated externally, but for the actors to communicate locally (including using handlers that aren't exported, e.g., because they may not contain serializable messages).
The intent is to use this in the tensor engine, to allow the controller to instruct actors to coordinate locally, passing objects like tensor references directly.
This required building a general instance registration mechanism, which we can use to replace the ledger in a follow-up change.
Differential Revision: D77377382
NOTE FOR REVIEWERS: This PR has internal Meta-specific changes or comments, please review them on Phabricator!