(shape_arg, layout_arg)
| 397 | [((300,), "A")], |
| 398 | ) |
| 399 | def test_tensor_reshape_strided_error(shape_arg, layout_arg): |
| 400 | tensor = cvcuda.Tensor((10, 10, 3), np.uint8, layout="HWC") |
| 401 | assert tensor.cuda().strides == (32, 3, 1) # strided rows |
| 402 | |
| 403 | with t.raises(RuntimeError): |
| 404 | tensor.reshape(shape_arg, layout=layout_arg) |
| 405 | |
| 406 | with t.raises(RuntimeError): |
| 407 | cvcuda.reshape(tensor, shape_arg, layout=layout_arg) |
| 408 | |
| 409 | |
| 410 | @t.mark.parametrize( |