MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / PowImpl

Function PowImpl

tensorflow/lite/kernels/pow.cc:81–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79
80template <typename T>
81void 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
95TfLiteStatus CheckValue(TfLiteContext* context, const TfLiteTensor* input) {
96 const int64_t num_elements = NumElements(input);

Callers

nothing calls this directly

Calls 3

BroadcastPow4DFunction · 0.85
GetTensorShapeFunction · 0.50
PowFunction · 0.50

Tested by

no test coverage detected