Skip to content

Commit 7f78932

Browse files
tushar00jainfacebook-github-bot
authored andcommitted
add torchft buck library
Summary: as title Reviewed By: d4l3k Differential Revision: D83488418
1 parent 037003f commit 7f78932

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

torchft/multiprocessing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
class _MonitoredPipe:
11-
def __init__(self, pipe: "Connection[object, object]") -> None:
11+
def __init__(self, pipe: "Connection") -> None:
1212
self._pipe = pipe
1313

1414
def send(self, obj: object) -> None:

torchft/multiprocessing_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
from torchft.multiprocessing import _MonitoredPipe
77

88

9-
def pipe_get(q: "Connection[object, object]") -> None:
9+
def pipe_get(q: "Connection") -> None:
1010
q.recv()
1111

1212

13-
def pipe_put(q: "Connection[object, object]") -> None:
13+
def pipe_put(q: "Connection") -> None:
1414
q.recv()
1515
q.send(1)
1616

torchft/process_group.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1443,8 +1443,8 @@ def _worker(
14431443
store_addr: str,
14441444
rank: int,
14451445
world_size: int,
1446-
req_pipe: "Connection[object, object]",
1447-
future_pipe: "Connection[object, object]",
1446+
req_pipe: "Connection",
1447+
future_pipe: "Connection",
14481448
curr_device: int,
14491449
) -> None:
14501450
try:

0 commit comments

Comments
 (0)