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
5252 return tanh(f);
5353 case DMUO_ASINH:
5454 return asinh(f);
55+ case DMUO_ACOSH:
56+ return acosh(f);
5557 default:
5658 av_assert0(!"not supported yet");
5759 return 0.f;
@@ -117,5 +119,7 @@ int main(int agrc, char **argv) · 59 unmodified lines
117119 return 1;
118120 if (test(DMUO_ASINH))
119121 return 1;
122+ if (test(DMUO_ACOSH))
123+ return 1;
120124 return 0;
121125 }

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