| 79 | |
| 80 | template <typename T> |
| 81 | void PowImpl(const TfLiteTensor* input1, const TfLiteTensor* input2, |
| 82 | TfLiteTensor* output, bool requires_broadcast) { |
| 83 | if (requires_broadcast) { |
| 84 | optimized_ops::BroadcastPow4D( |
| 85 | GetTensorShape(input1), GetTensorData<T>(input1), |
| 86 | GetTensorShape(input2), GetTensorData<T>(input2), |
| 87 | GetTensorShape(output), GetTensorData<T>(output)); |
| 88 | } else { |
| 89 | reference_ops::Pow(GetTensorShape(input1), GetTensorData<T>(input1), |
| 90 | GetTensorShape(input2), GetTensorData<T>(input2), |
| 91 | GetTensorShape(output), GetTensorData<T>(output)); |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | TfLiteStatus CheckValue(TfLiteContext* context, const TfLiteTensor* input) { |
| 96 | const int64_t num_elements = NumElements(input); |
nothing calls this directly
no test coverage detected