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

Function PrepareOutputBuffer

tensorflow/lite/kernels/rfft2d.cc:306–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304}
305
306void PrepareOutputBuffer(complex<float>* output_data, int fft_height,
307 int fft_width, double** fft_input_output) {
308 int cnt = 0;
309 for (int i = 0; i < fft_height; ++i) {
310 for (int j = 0; j < fft_width / 2 + 1; ++j) {
311 output_data[cnt++] = complex<float>(fft_input_output[i][j * 2],
312 fft_input_output[i][j * 2 + 1]);
313 }
314 }
315}
316
317TfLiteStatus Rfft2dHelper(TfLiteContext* context, TfLiteNode* node) {
318 const TfLiteTensor* input = GetInput(context, node, kInputTensor);

Callers 1

Rfft2dHelperFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected