(rel_shape)
| 412 | |
| 413 | @params([1, -1, 1], np.float32([1, -1, 1])) |
| 414 | def test_invalid_wildcard(rel_shape): |
| 415 | shapes = [[480, 640], [320, 240]] |
| 416 | pipe = reshape_pipe( |
| 417 | batch_size=len(shapes), num_threads=1, device_id=0, shapes=shapes, rel_shape=rel_shape |
| 418 | ) |
| 419 | err_glob = ( |
| 420 | "*`rel_shape` has more elements (3) than*dimensions in the input (2)*" "use `src_dims`*" |
| 421 | ) |
| 422 | with assert_raises(RuntimeError, glob=err_glob): |
| 423 | pipe.run() |
| 424 | |
| 425 | |
| 426 | def test_wildcard_zero_volume(): |
nothing calls this directly
no test coverage detected