()
| 81 | |
| 82 | @attr("pytorch") |
| 83 | def test_pytorch_containers(): |
| 84 | import torch |
| 85 | |
| 86 | samples_cpu = [ |
| 87 | (torch.tensor(test_array), test_array), |
| 88 | ] |
| 89 | batches_cpu = [ |
| 90 | ([torch.tensor(test_array)], [test_array]), |
| 91 | ([torch.tensor(test_array)] * 4, [test_array] * 4), |
| 92 | ] |
| 93 | disallowed_samples = [ |
| 94 | torch.tensor(test_array).cuda(), |
| 95 | ] |
| 96 | yield from run_checks(samples_cpu, batches_cpu, disallowed_samples, []) |
| 97 | |
| 98 | |
| 99 | @attr("cupy") |
nothing calls this directly
no test coverage detected