TFLITE: Enable Ruy. This speeds-up TFlite inference a bit, and also avoids floating point exceptions seen in debug build (when Ruy is off). With that, we re-enable floating point exception reporting. Noise-level change in stats on rare occasions.
diff --git a/CMakeLists.txt b/CMakeLists.txt index 42a237f..01d3aba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -527,9 +527,9 @@ # static linking makes life with TFLite much easier set(TFLITE_C_BUILD_SHARED_LIBS OFF) - # We don't care about comparing against these delegates (yet), and disabling - # it reduces compile time meaningfully - set(TFLITE_ENABLE_RUY OFF) + # Keep RUY on. Ruy is a general GEMM library. + set(TFLITE_ENABLE_RUY ON) + # Turn XNNPack off, as it does NOT support dynamic tensor shapes. set(TFLITE_ENABLE_XNNPACK OFF) fetchcontent_declare(
diff --git a/aom/src/aom_encoder.c b/aom/src/aom_encoder.c index 6d92ed4..ef6e472 100644 --- a/aom/src/aom_encoder.c +++ b/aom/src/aom_encoder.c
@@ -113,7 +113,7 @@ #define FLOATING_POINT_RESTORE_PRECISION #endif // ARCH_X86 || ARCH_X86_64 -#if HAVE_FEXCEPT && CONFIG_DEBUG && !CONFIG_CNN_RESTORATION +#if HAVE_FEXCEPT && CONFIG_DEBUG #define FLOATING_POINT_SET_EXCEPTIONS \ const int float_excepts = \ feenableexcept(FE_DIVBYZERO | FE_UNDERFLOW | FE_OVERFLOW); @@ -123,7 +123,7 @@ #else #define FLOATING_POINT_SET_EXCEPTIONS #define FLOATING_POINT_RESTORE_EXCEPTIONS -#endif // HAVE_FEXCEPT && CONFIG_DEBUG && !CONFIG_CNN_RESTORATION +#endif // HAVE_FEXCEPT && CONFIG_DEBUG /* clang-format off */ #define FLOATING_POINT_INIT \