Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[air/benchmark] Torch benchmarks for 4x4 #26692

Merged
merged 29 commits into from
Jul 19, 2022
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
fix error
  • Loading branch information
JiahaoYao authored Jul 18, 2022
commit de881c45ce04543cc15a14c0d49db3e360a3b41c
4 changes: 2 additions & 2 deletions python/ray/train/tests/test_gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,16 @@ def train_fn():
devices = trainer.run(train_fn)
trainer.shutdown()

count = Counter(devices)
if num_gpus_per_worker == 0.5:
count = Counter(devices)
for i in range(4):
assert count[i] == 4
elif num_gpus_per_worker == 1:
for i in range(4):
assert count[i] == 2
elif num_gpus_per_worker == 2:
for i in range(2):
assert count[i] == 2
assert count[2 * i] == 2
else:
raise RuntimeError(
"New parameter for this test has been added without checking that the "
Expand Down