8000 Add chainerx test to dataset_tests by keisukefukuda · Pull Request #8346 · chainer/chainer · GitHub
[go: up one dir, main page]

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

Add chainerx test to dataset_tests #8346

Merged
merged 11 commits into from
Dec 2, 2019
Prev Previous commit
Next Next commit
use get_device_from_id instead of chainermn.testing.get_device
  • Loading branch information
keisukefukuda committed Nov 15, 2019
commit 8b065f3dcf16e4ef68cc590418793914d331f7bf
2 changes: 1 addition & 1 deletion tests/chainermn_tests/datasets_tests/test_mnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def check_mnist(use_gpu, use_chx, display_log=True):

if use_gpu:
# Call CuPy's `Device.use()` to force cudaSetDevice()
get_device(comm.intra_rank, False).use()
chainer.cuda.get_device_from_id(comm.intra_rank).use()

device = get_device(comm.intra_rank if use_gpu else None, use_chx)
device.use()
Expand Down
0