(device, batch_size, axes, axis_names)
| 510 | |
| 511 | |
| 512 | def check_slice_vs_fused_decoder(device, batch_size, axes, axis_names): |
| 513 | eii_args = [ |
| 514 | SliceArgsIterator(batch_size, image_layout="HWC", axes=axes, axis_names=axis_names) |
| 515 | for k in range(2) |
| 516 | ] |
| 517 | compare_pipelines( |
| 518 | SlicePipeline( |
| 519 | device, |
| 520 | batch_size, |
| 521 | iter(eii_args[0]), |
| 522 | axes=axes, |
| 523 | axis_names=axis_names, |
| 524 | is_fused_decoder=False, |
| 525 | ), |
| 526 | SlicePipeline( |
| 527 | device, |
| 528 | batch_size, |
| 529 | iter(eii_args[1]), |
| 530 | axes=axes, |
| 531 | axis_names=axis_names, |
| 532 | is_fused_decoder=True, |
| 533 | ), |
| 534 | batch_size=batch_size, |
| 535 | N_iterations=3, |
| 536 | ) |
| 537 | |
| 538 | |
| 539 | def test_slice_vs_fused_decoder(): |
nothing calls this directly
no test coverage detected