()
| 85 | |
| 86 | |
| 87 | def test_swapped_ends(): |
| 88 | data = [np.uint8([1, 2, 3]), np.uint8([1, 2])] |
| 89 | src = fn.external_source(lambda: data) |
| 90 | pipe = index_pipe(src, lambda x: x[2:1]) |
| 91 | inp, cpu, gpu = tuple(out.as_cpu() for out in pipe.run()) |
| 92 | for i in range(len(inp)): |
| 93 | x = inp.at(i) |
| 94 | assert np.array_equal(x[2:1], cpu.at(i)) |
| 95 | assert np.array_equal(x[2:1], gpu.at(i)) |
| 96 | |
| 97 | |
| 98 | def test_noop(): |
nothing calls this directly
no test coverage detected