| 4323 | want[i]); |
| 4324 | exit(1); |
| 4325 | } |
| 4326 | } |
| 4327 | |
| 4328 | static bool tensor_type_is_glm_dense_quant(uint32_t type) { |
| 4329 | return type == DS4_TENSOR_Q8_0 || |
| 4330 | type == DS4_TENSOR_Q4_K || |
| 4331 | type == DS4_TENSOR_Q4_0; |
| 4332 | } |
| 4333 | |
| 4334 | static bool tensor_type_is_dense_quant(uint32_t type) { |
| 4335 | return type == DS4_TENSOR_Q8_0 || |
| 4336 | type == DS4_TENSOR_Q4_K || |
| 4337 | type == DS4_TENSOR_Q4_0; |
| 4338 | } |
| 4339 | |
| 4340 | static void tensor_expect_glm_dense_quant_layout( |
| 4341 | const ds4_tensor *t, |
| 4342 | uint32_t ndim, |
| 4343 | uint64_t d0, |
| 4344 | uint64_t d1, |
| 4345 | uint64_t d2) { |
| 4346 | if (!t) ds4_die("internal error: missing tensor while validating GLM dense layout"); |
no test coverage detected