Skip to content

Commit 5c3b478

Browse files
inailuigtensorflower-gardener
authored andcommitted
PR #11721: [XLA:CPU] Add MpiCollectives to the the .pyi stubs
Imported from GitHub PR openxla/xla#11721 we forgot this in openxla/xla#7849. Copybara import of the project: -- 3924cc0fbbb63e9503f38a59aede3b8e817b17fa by Clemens Giuliani <clemens@inailuig.it>: [XLA:CPU] add missing type annotations for the mpi collectives Merging this change closes #11721 FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#11721 from inailuig:mpicollectives_pytype 3924cc0fbbb63e9503f38a59aede3b8e817b17fa PiperOrigin-RevId: 627055918
1 parent 15a1df4 commit 5c3b478

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

third_party/xla/xla/python/xla_extension/__init__.pyi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,12 @@ def make_gloo_tcp_collectives(
549549
interface: Optional[str] = ...,
550550
) -> CpuCollectives: ...
551551

552+
class MpiCollectives(CpuCollectives):
553+
def Init(self): ...
554+
def Finalize(self): ...
555+
556+
def make_mpi_collectives() -> MpiCollectives: ...
557+
552558
def get_tfrt_cpu_client(
553559
asynchronous: bool = ...,
554560
distributed_client: Optional[DistributedRuntimeClient] = ...,

0 commit comments

Comments
 (0)