(device, batch_size, axes, axis_names)
| 544 | |
| 545 | |
| 546 | def check_slice_vs_numpy(device, batch_size, axes, axis_names): |
| 547 | eii_args = [ |
| 548 | SliceArgsIterator(batch_size, image_layout="HWC", axes=axes, axis_names=axis_names) |
| 549 | for k in range(2) |
| 550 | ] |
| 551 | compare_pipelines( |
| 552 | SlicePipeline(device, batch_size, iter(eii_args[0]), axes=axes, axis_names=axis_names), |
| 553 | SlicePythonOp(batch_size, iter(eii_args[1]), axes=axes, axis_names=axis_names), |
| 554 | batch_size=batch_size, |
| 555 | N_iterations=3, |
| 556 | ) |
| 557 | |
| 558 | |
| 559 | def test_slice_vs_numpy(): |
nothing calls this directly
no test coverage detected