We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b227de commit ca47835Copy full SHA for ca47835
tests/test_ci.py
@@ -37,8 +37,7 @@ def dist_func() -> torch.Tensor:
37
backend="gloo", # log_dir="./test_logs"
38
)
39
40
- results = next(iter(r.values()))
41
- assert torch.all(results[0] == results[1])
+ assert torch.all(r.value(0) == r.value(1))
42
43
44
def test_logging() -> None:
tests/test_func.py
@@ -13,7 +13,7 @@ def test_launch() -> None:
13
workers_per_host="slurm",
14
15
16
- result_values = [v for host_results in result.values() for v in host_results.values()]
+ result_values = result.all(by='rank')
17
18
t = True
19
for i in range(len(result_values)):
0 commit comments