History

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

Ting Fu committed 6 years ago

Commit 057f6ee1 parent 486c0c41 file · +4 −0Browse files

Unified · Split

tests/dnn/dnn-layer-mathunary-test.c+4−0
@@ -38,6 +38,8 @@ static float get_expected(float f, DNNMathUnaryOperation op) · 37 unmodified lines
3838 return cos(f);
3939 case DMUO_TAN:
4040 return tan(f);
41+ case DMUO_ASIN:
42+ return asin(f);
4143 default:
4244 av_assert0(!"not supported yet");
4345 return 0.f;
@@ -89,5 +91,7 @@ int main(int agrc, char **argv) · 45 unmodified lines
8991 return 1;
9092 if (test(DMUO_TAN))
9193 return 1;
94+ if (test(DMUO_ASIN))
95+ return 1;
9296 return 0;
9397 }

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