Skip to content
Closed
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
7 changes: 4 additions & 3 deletions test/test_rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@

import torch
import torch.distributed as dist
from common_distributed import MultiProcessTestCase
from common_utils import load_tests, run_tests
from torch.distributed.rpc import RpcBackend


if not dist.is_available():
print("c10d not available, skipping tests")
sys.exit(0)

from torch.distributed.rpc import RpcBackend
from common_distributed import MultiProcessTestCase
from common_utils import load_tests, run_tests


BACKEND = getenv("RPC_BACKEND", RpcBackend.PROCESS_GROUP)
RPC_INIT_URL = getenv("RPC_INIT_URL", "")
Expand Down