| 8 | namespace reduce { |
| 9 | |
| 10 | void get_ABC(const TensorShape& shape, size_t& A, size_t& B, size_t& C, size_t axis) { |
| 11 | auto shape_arr = shape.shape; |
| 12 | auto ndim = shape.ndim; |
| 13 | A = std::accumulate(shape_arr, shape_arr + axis, 1_z, SafeMultiplies<size_t>()); |
| 14 | B = shape_arr[axis]; |
| 15 | C = std::accumulate( |
| 16 | shape_arr + (axis + 1), shape_arr + ndim, 1_z, SafeMultiplies<size_t>()); |
| 17 | } |
| 18 | |
| 19 | void get_ABC( |
| 20 | const TensorShape& shape, size_t& A, size_t& B, size_t& C, size_t axis_start, |
no outgoing calls
no test coverage detected