| 323 | } |
| 324 | |
| 325 | int GetNumElements(const ArrayShape& shape) { |
| 326 | int num_elements = 1; |
| 327 | for (int dim : shape.dimensions) { |
| 328 | num_elements *= dim; |
| 329 | } |
| 330 | return num_elements; |
| 331 | } |
| 332 | |
| 333 | template <typename T, typename = std::enable_if_t<std::is_integral<T>::value>> |
| 334 | void FillIntT(void* buffer, int num_elements) { |
no outgoing calls
no test coverage detected