(batch_size)
| 273 | |
| 274 | @params(1, 8) |
| 275 | def test_fancy_upsampling(batch_size): |
| 276 | if get_nvjpeg_ver() < (12, 1, 0): |
| 277 | raise SkipTest("nvimgcodec/nvjpeg doesn't support fancy upsampling in this version") |
| 278 | |
| 279 | data_path = os.path.join(test_data_root, good_path, "jpeg") |
| 280 | compare_pipelines( |
| 281 | decoder_pipe( |
| 282 | data_path=data_path, |
| 283 | batch_size=batch_size, |
| 284 | num_threads=3, |
| 285 | device_id=0, |
| 286 | device="mixed", |
| 287 | jpeg_fancy_upsampling=True, |
| 288 | ), |
| 289 | decoder_pipe( |
| 290 | data_path=data_path, batch_size=batch_size, num_threads=3, device_id=0, device="cpu" |
| 291 | ), |
| 292 | batch_size=batch_size, |
| 293 | N_iterations=3, |
| 294 | eps=1, |
| 295 | ) |
| 296 | |
| 297 | |
| 298 | batch_size_test = 16 |
nothing calls this directly
no test coverage detected