@@ -244,7 +244,7 @@ TEST_CASE("7. test dl fft hp s16", "[dl_fft]")
244244 fft_input_s16_128, fft_input_s16_256, fft_input_s16_512, fft_input_s16_1024, fft_input_s16_2048};
245245 const float *output[5 ] = {fft_output_128, fft_output_256, fft_output_512, fft_output_1024, fft_output_2048};
246246 int test_nfft[5 ] = {128 , 256 , 512 , 1024 , 2048 };
247- float target_db = 65 ; // high precision int16 fft
247+ float target_db = 60 ; // high precision int16 fft
248248 int ram_size_before = heap_caps_get_free_size (MALLOC_CAP_8BIT);
249249 uint32_t start = 0 , end = 0 ;
250250 int out_exponent;
@@ -261,7 +261,7 @@ TEST_CASE("7. test dl fft hp s16", "[dl_fft]")
261261
262262 // check snr
263263 dl_short_to_float (x, nfft * 2 , out_exponent, y);
264- TEST_ASSERT_EQUAL (true , check_fft_results (y, output[i], nfft, target_db, 5e-3 ));
264+ TEST_ASSERT_EQUAL (true , check_fft_results (y, output[i], nfft, target_db, 2e-2 ));
265265
266266 start = esp_timer_get_time ();
267267 for (int k = 0 ; k < LOOP; k++) {
@@ -285,7 +285,7 @@ TEST_CASE("8. test dl ifft hp s16", "[dl_fft]")
285285 fft_input_s16_128, fft_input_s16_256, fft_input_s16_512, fft_input_s16_1024, fft_input_s16_2048};
286286 // const float *output[5] = {fft_input_128, fft_input_256, fft_input_512, fft_input_1024, fft_input_2048};
287287 int test_nfft[5 ] = {128 , 256 , 512 , 1024 , 2048 };
288- float target_db = 65 ; // high precision int16 fft
288+ float target_db = 60 ; // high precision int16 fft
289289 int ram_size_before = heap_caps_get_free_size (MALLOC_CAP_8BIT);
290290 uint32_t start = 0 , end = 0 ;
291291 int exponent;
@@ -306,7 +306,7 @@ TEST_CASE("8. test dl ifft hp s16", "[dl_fft]")
306306 // check snr
307307 dl_short_to_float (x, nfft * 2 , out_exponent, y);
308308 dl_short_to_float (input[i], nfft * 2 , -15 , z);
309- TEST_ASSERT_EQUAL (true , check_fft_results (y, z, nfft, target_db, 5e-3 ));
309+ TEST_ASSERT_EQUAL (true , check_fft_results (y, z, nfft, target_db, 1e-2 ));
310310
311311 start = esp_timer_get_time ();
312312 for (int k = 0 ; k < LOOP; k++) {
0 commit comments