Skip to content

Push MeshTrait implementation to _ActorMeshRefImpl #553

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pzhan9
Copy link
Contributor

@pzhan9 pzhan9 commented Jul 16, 2025

Summary:
_ActorMeshRefImpl is the standin class for PythonActorMesh and PythonActorMeshRef. This diff stack is working on replacing _ActorMeshRefImpl with PythonActorMesh and PythonActorMeshRef.

Compared to PythonActorMesh and PythonActorMeshRef, one method _ActorMeshRefImpl is missing is the def slice method. Lacking of this method blocks to do a drop-in replacement.

This diff pushes the MeshTrait implementation to _ActorMeshRefImpl. In this way, _ActorMeshRefImpl will have the slice method from MeshTrait.

Differential Revision: D78300586

pzhan9 added 2 commits July 16, 2025 10:39
…#551)

Summary:

This diffs adds `def slice` method to both `PythonActorMesh` and `PythonActorMeshRef`. With this method, we can:

1. slice a `PythonActorMesh` object into a `PythonActorMeshRef`;
1. slice a `PythonActorMeshRef` into another `PythonActorMeshRef`.

Tests are added to demo that we can cast to the sliced mesh ref.

Reviewed By: shayne-fletcher

Differential Revision: D78292490
Summary:
`_ActorMeshRefImpl` is the standin class for `PythonActorMesh` and `PythonActorMeshRef`. This diff stack is working on replacing `_ActorMeshRefImpl` with `PythonActorMesh` and `PythonActorMeshRef`.

Compared to `PythonActorMesh` and `PythonActorMeshRef`, one method `_ActorMeshRefImpl` is missing is the `def slice` method.  Lacking of this method blocks to do a drop-in replacement.

This diff pushes the `MeshTrait` implementation to `_ActorMeshRefImpl`. In this way, `_ActorMeshRefImpl` will have `the slice` method from `MeshTrait`.

Differential Revision: D78300586
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 16, 2025
@facebook-github-bot
Copy link
Contributor

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

pzhan9 added a commit to pzhan9/monarch-1 that referenced this pull request Jul 16, 2025
Summary:

`_ActorMeshRefImpl` is the standin class for `PythonActorMesh` and `PythonActorMeshRef`. This diff stack is working on replacing `_ActorMeshRefImpl` with `PythonActorMesh` and `PythonActorMeshRef`.

Compared to `PythonActorMesh` and `PythonActorMeshRef`, one method `_ActorMeshRefImpl` is missing is the `def slice` method.  Lacking of this method blocks to do a drop-in replacement.

This diff pushes the `MeshTrait` implementation to `_ActorMeshRefImpl`. In this way, `_ActorMeshRefImpl` will have `the slice` method from `MeshTrait`.

Differential Revision: D78300586
pzhan9 added a commit to pzhan9/monarch-1 that referenced this pull request Jul 16, 2025
Summary:

`_ActorMeshRefImpl` is the standin class for `PythonActorMesh` and `PythonActorMeshRef`. This diff stack is working on replacing `_ActorMeshRefImpl` with `PythonActorMesh` and `PythonActorMeshRef`.

Compared to `PythonActorMesh` and `PythonActorMeshRef`, one method `_ActorMeshRefImpl` is missing is the `def slice` method.  Lacking of this method blocks to do a drop-in replacement.

This diff pushes the `MeshTrait` implementation to `_ActorMeshRefImpl`. In this way, `_ActorMeshRefImpl` will have `the slice` method from `MeshTrait`.

Differential Revision: D78300586
pzhan9 added a commit to pzhan9/monarch-1 that referenced this pull request Jul 16, 2025
Summary:

`_ActorMeshRefImpl` is the standin class for `PythonActorMesh` and `PythonActorMeshRef`. This diff stack is working on replacing `_ActorMeshRefImpl` with `PythonActorMesh` and `PythonActorMeshRef`.

Compared to `PythonActorMesh` and `PythonActorMeshRef`, one method `_ActorMeshRefImpl` is missing is the `def slice` method.  Lacking of this method blocks to do a drop-in replacement.

This diff pushes the `MeshTrait` implementation to `_ActorMeshRefImpl`. In this way, `_ActorMeshRefImpl` will have `the slice` method from `MeshTrait`.

Differential Revision: D78300586
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 Meta Open Source bot. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants