History

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

Ting Fu committed 6 years ago

Commit 33374bd1 parent 9d14b381 file · +4 −0Browse files

Unified · Split

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

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