History

dnn-layer-math-unary-test: add unit test for acosh

Ting Fu committed 6 years ago

Commit 52d2e161 parent cd2e3a81 file · +4 −0Browse files

Unified · Split

tests/dnn/dnn-layer-mathunary-test.c+4−0
@@ -52,6 +52,8 @@ static float get_expected(float f, DNNMathUnaryOperation op) · 51 unmodified lines
52 return tanh(f);52 return tanh(f);
53 case DMUO_ASINH:53 case DMUO_ASINH:
54 return asinh(f);54 return asinh(f);
55 case DMUO_ACOSH:
56 return acosh(f);
55 default:57 default:
56 av_assert0(!"not supported yet");58 av_assert0(!"not supported yet");
57 return 0.f;59 return 0.f;
@@ -117,5 +119,7 @@ int main(int agrc, char **argv) · 59 unmodified lines
117 return 1;119 return 1;
118 if (test(DMUO_ASINH))120 if (test(DMUO_ASINH))
119 return 1;121 return 1;
122 if (test(DMUO_ACOSH))
123 return 1;
120 return 0;124 return 0;
121}125}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t