(use_cuda_pinned_tensor=True)
| 24 | |
| 25 | |
| 26 | def _skip_for_invalid_environment(use_cuda_pinned_tensor=True): |
| 27 | if get_accelerator().device_name() != 'cuda': |
| 28 | if use_cuda_pinned_tensor: |
| 29 | pytest.skip("torch.pin_memory is only supported in CUDA environments.") |
| 30 | |
| 31 | |
| 32 | def _get_local_rank(): |
no test coverage detected
searching dependent graphs…