History

dnn-layer-mathunary-test: add unit test for cos

Ting Fu committed 6 years ago

Commit dd3fe3e1 parent 88fb4941 file · +4 −0Browse files

Unified · Split

tests/dnn/dnn-layer-mathunary-test.c+4−0
@@ -34,6 +34,8 @@ static float get_expected(float f, DNNMathUnaryOperation op) · 33 unmodified lines
3434 return (f >= 0) ? f : -f;
3535 case DMUO_SIN:
3636 return sin(f);
37+ case DMUO_COS:
38+ return cos(f);
3739 default:
3840 av_assert0(!"not supported yet");
3941 return 0.f;
@@ -81,5 +83,7 @@ int main(int agrc, char **argv) · 41 unmodified lines
8183 return 1;
8284 if (test(DMUO_SIN))
8385 return 1;
86+ if (test(DMUO_COS))
87+ return 1;
8488 return 0;
8589 }

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