tests/dnn/dnn-layer-mathunary-test: add unit test for exp

Signed-off-by: Wenlong Ding <wenlong.ding@intel.com>
pull/362/head
Wenlong Ding 4 years ago committed by Guo, Yejun
parent b460595dd7
commit 16e5014649
  1. 4
      tests/dnn/dnn-layer-mathunary-test.c

@ -62,6 +62,8 @@ static float get_expected(float f, DNNMathUnaryOperation op)
return floor(f); return floor(f);
case DMUO_ROUND: case DMUO_ROUND:
return round(f); return round(f);
case DMUO_EXP:
return exp(f);
default: default:
av_assert0(!"not supported yet"); av_assert0(!"not supported yet");
return 0.f; return 0.f;
@ -140,5 +142,7 @@ int main(int agrc, char **argv)
return 1; return 1;
if (test(DMUO_ROUND)) if (test(DMUO_ROUND))
return 1; return 1;
if (test(DMUO_EXP))
return 1;
return 0; return 0;
} }

Loading…
Cancel
Save