Unified · Split
| @@ -48,6 +48,8 @@ static float get_expected(float f, DNNMathUnaryOperation op) · 47 unmodified lines | ||
| 48 | 48 | return sinh(f); |
| 49 | 49 | case DMUO_COSH: |
| 50 | 50 | return cosh(f); |
| 51 | + case DMUO_TANH: | |
| 52 | + return tanh(f); | |
| 51 | 53 | default: |
| 52 | 54 | av_assert0(!"not supported yet"); |
| 53 | 55 | return 0.f; |
| @@ -109,5 +111,7 @@ int main(int agrc, char **argv) · 55 unmodified lines | ||
| 109 | 111 | return 1; |
| 110 | 112 | if (test(DMUO_COSH)) |
| 111 | 113 | return 1; |
| 114 | + if (test(DMUO_TANH)) | |
| 115 | + return 1; | |
| 112 | 116 | return 0; |
| 113 | 117 | } |