History

dnn_backend_native_layer_mathunary: add acosh support

Ting Fu committed 6 years ago

Commit cd2e3a81 parent 33374bd4 files · +7 −2Browse files

Showing the changes to libavfilter (2 of 4 files). Show all

Unified · Split

2 files
  1. libavfilter/dnn/dnn_backend_native_layer_mathunary.c +4 −0
  2. libavfilter/dnn/dnn_backend_native_layer_mathunary.h +1 −0
libavfilter/dnn/dnn_backend_native_layer_mathunary.c+4−0
@@ -120,6 +120,10 @@ int dnn_execute_layer_math_unary(DnnOperand *operands, const int32_t *input_oper · 119 unmodified lines
120 for (int i = 0; i < dims_count; ++i)120 for (int i = 0; i < dims_count; ++i)
121 dst[i] = asinh(src[i]);121 dst[i] = asinh(src[i]);
122 return 0;122 return 0;
123 case DMUO_ACOSH:
124 for (int i = 0; i < dims_count; ++i)
125 dst[i] = acosh(src[i]);
126 return 0;
123 default:127 default:
124 return -1;128 return -1;
125 }129 }
libavfilter/dnn/dnn_backend_native_layer_mathunary.h+1−0
@@ -41,6 +41,7 @@ typedef enum { · 40 unmodified lines
41 DMUO_COSH = 8,41 DMUO_COSH = 8,
42 DMUO_TANH = 9,42 DMUO_TANH = 9,
43 DMUO_ASINH = 10,43 DMUO_ASINH = 10,
44 DMUO_ACOSH = 11,
44 DMUO_COUNT45 DMUO_COUNT
45} DNNMathUnaryOperation;46} DNNMathUnaryOperation;
46 47

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