Spaces:
Running
Running
ORI-Muchim
commited on
Commit
•
d3269d3
1
Parent(s):
566af11
Update utils.py
Browse files
utils.py
CHANGED
@@ -11,6 +11,8 @@ import torch
|
|
11 |
|
12 |
MATPLOTLIB_FLAG = False
|
13 |
|
|
|
|
|
14 |
logging.basicConfig(stream=sys.stdout, level=logging.ERROR)
|
15 |
logger = logging
|
16 |
|
|
|
11 |
|
12 |
MATPLOTLIB_FLAG = False
|
13 |
|
14 |
+
model = DDP(model, device_ids=[rank], find_unused_parameters=True)
|
15 |
+
|
16 |
logging.basicConfig(stream=sys.stdout, level=logging.ERROR)
|
17 |
logger = logging
|
18 |
|