1. 24 Apr, 2020 1 commit
    • Martin Storsjö's avatar
      dnn-layer-mathbinary-test: Fix tests for cases with extra intermediate precision · f4d8fad8
      Martin Storsjö authored
      This fixes tests on 32 bit x86 mingw with clang, which uses x87
      fpu by default.
      
      In this setup, while the get_expected function is declared to
      return float, the compiler is (especially given the optimization
      flags set) free to keep the intermediate values (in this case,
      the return value from the inlined function) in higher precision.
      
      This results in the situation where 7.28 (which actually, as
      a float, ends up as 7.2800002098), multiplied by 100, is
      728.000000 when really forced into a 32 bit float, but 728.000021
      when kept with higher intermediate precision.
      
      For the multiplication case, a more suitable epsilon would e.g.
      be 2*FLT_EPSILON*fabs(expected_output), but just increase the
      current hardcoded threshold for now.
      Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
      f4d8fad8
  2. 22 Apr, 2020 3 commits
  3. 07 Apr, 2020 1 commit
  4. 30 Oct, 2019 1 commit
  5. 23 Oct, 2019 1 commit
  6. 15 Oct, 2019 1 commit
  7. 04 Oct, 2019 1 commit
  8. 20 Sep, 2019 1 commit
  9. 19 Sep, 2019 2 commits
  10. 30 Aug, 2019 1 commit
  11. 19 Aug, 2019 1 commit
    • Guo, Yejun's avatar
      FATE/dnn: let fate/dnn tests depend on ffmpeg static libraries · d0fa1a58
      Guo, Yejun authored
      background:
      DNN (deep neural network) is a sub module of libavfilter, and FATE/dnn
      is unit test for the DNN module, one unit test for one dnn layer.
      The unit tests are not based on the APIs exported by libavfilter,
      they just directly call into the functions within DNN submodule.
      
      There is an issue when run the following command:
      build$ ../ffmpeg/configure --disable-static --enable-shared
      make
      make fate-dnn-layer-pad
      
      And part of error message:
      tests/dnn/dnn-layer-pad-test.o: In function `test_with_mode_symmetric':
      /work/media/ffmpeg/build/src/tests/dnn/dnn-layer-pad-test.c:73: undefined reference to `dnn_execute_layer_pad'
      
      The root cause is that function dnn_execute_layer_pad is a LOCAL symbol
      in libavfilter.so, and so the linker could not find it when build dnn-layer-pad-test.
      To check it, just run: readelf -s libavfilter/libavfilter.so | grep dnn
      
      So, add dependency in fate/dnn Makefile with ffmpeg static libraries.
      This is the same method used in fate/checkasm
      Signed-off-by: 's avatarGuo, Yejun <yejun.guo@intel.com>
      Signed-off-by: 's avatarPedro Arthur <bygrandao@gmail.com>
      d0fa1a58
  12. 29 Jul, 2019 1 commit