Skip to content

: rust bindings: fix expose Selection to python. missed a bit (#19) #20

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
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions python/monarch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
from monarch.common.opaque_ref import OpaqueRef
from monarch.common.pipe import create_pipe, Pipe, remote_generator
from monarch.common.remote import remote
from monarch.common.selection import Selection
from monarch.common.shape import NDSlice, Shape
from monarch.common.stream import get_active_stream, Stream
from monarch.common.tensor import reduce, reduce_, Tensor
Expand Down Expand Up @@ -76,6 +77,7 @@
"RemoteException": ("monarch.common.invocation", "RemoteException"),
"Shape": ("monarch.common.shape", "Shape"),
"NDSlice": ("monarch.common.shape", "NDSlice"),
"Selection": ("monarch.common.selection", "Selection"),
"OpaqueRef": ("monarch.common.opaque_ref", "OpaqueRef"),
"create_pipe": ("monarch.common.pipe", "create_pipe"),
"Pipe": ("monarch.common.pipe", "Pipe"),
Expand Down Expand Up @@ -143,6 +145,7 @@ def __getattr__(name):
"Future",
"RemoteException",
"Shape",
"Selection",
"NDSlice",
"OpaqueRef",
"create_pipe",
Expand Down
9 changes: 9 additions & 0 deletions python/monarch/common/selection.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

from monarch._rust_bindings.monarch_hyperactor.selection import Selection

__all__ = ["Selection"]
Loading