| 4368 | (int)t->name.len, |
| 4369 | t->name.ptr, |
| 4370 | tensor_type_name(t->type)); |
| 4371 | exit(1); |
| 4372 | } |
| 4373 | tensor_expect_layout(t, t->type, ndim, d0, d1, d2); |
| 4374 | } |
| 4375 | |
| 4376 | static void tensor_expect_optional( |
| 4377 | const ds4_tensor *t, |
| 4378 | uint32_t type, |
| 4379 | uint32_t ndim, |
| 4380 | uint64_t d0, |
| 4381 | uint64_t d1, |
| 4382 | uint64_t d2) { |
| 4383 | if (t) tensor_expect_layout(t, type, ndim, d0, d1, d2); |
| 4384 | } |
| 4385 | |
| 4386 | static void tensor_expect_plain_layout( |
| 4387 | const ds4_tensor *t, |
| 4388 | uint32_t ndim, |
| 4389 | uint64_t d0, |
| 4390 | uint64_t d1, |
| 4391 | uint64_t d2) { |
| 4392 | if (!t) ds4_die("internal error: missing tensor while validating layout"); |
no test coverage detected