| 3365 | |
| 3366 | template <typename T> |
| 3367 | inline void Pow(const RuntimeShape& input1_shape, const T* input1_data, |
| 3368 | const RuntimeShape& input2_shape, const T* input2_data, |
| 3369 | const RuntimeShape& output_shape, T* output_data) { |
| 3370 | const int flat_size = |
| 3371 | MatchingFlatSize(input1_shape, input2_shape, output_shape); |
| 3372 | for (int i = 0; i < flat_size; ++i) { |
| 3373 | output_data[i] = std::pow(input1_data[i], input2_data[i]); |
| 3374 | } |
| 3375 | } |
| 3376 | |
| 3377 | template <typename T> |
| 3378 | inline void BroadcastPow4DSlow(const RuntimeShape& unextended_input1_shape, |
no test coverage detected