Skip to content

Commit fce10a5

Browse files
committed
update
1 parent 89e1215 commit fce10a5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

distributed/rpc/pipeline/main.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os
22
import threading
33
import time
4+
import warnings
45
from functools import wraps
56

67
import torch
@@ -13,6 +14,14 @@
1314

1415
from torchvision.models.resnet import Bottleneck
1516

17+
# Suppress warnings that can't be fixed from user code
18+
warnings.filterwarnings("ignore",
19+
message="You are using a Backend .* as a ProcessGroup. This usage is deprecated",
20+
category=UserWarning)
21+
warnings.filterwarnings("ignore",
22+
message="networkx backend defined more than once: nx-loopback",
23+
category=RuntimeWarning)
24+
1625

1726
#########################################################
1827
# Define Model Parallel ResNet50 #
@@ -271,6 +280,9 @@ def run_worker(rank, world_size, num_split):
271280

272281

273282
if __name__=="__main__":
283+
# Suppress torch compile profiler warnings
284+
os.environ['TORCH_LOGS'] = '-dynamo'
285+
274286
world_size = 3
275287
for num_split in [1, 2, 4, 8]:
276288
tik = time.time()

0 commit comments

Comments
 (0)