Showing the changes to libavfilter (2 of 5 files). Show all
Unified · Split
| @@ -138,6 +138,10 @@ int dnn_execute_layer_math_unary(DnnOperand *operands, const int32_t *input_oper · 137 unmodified lines | ||
| 138 | 138 | for (int i = 0; i < dims_count; ++i) |
| 139 | 139 | dst[i] = floor(src[i]); |
| 140 | 140 | return 0; |
| 141 | + case DMUO_ROUND: | |
| 142 | + for (int i = 0; i < dims_count; ++i) | |
| 143 | + dst[i] = round(src[i]); | |
| 144 | + return 0; | |
| 141 | 145 | default: |
| 142 | 146 | return -1; |
| 143 | 147 | } |
| @@ -45,6 +45,7 @@ typedef enum { · 44 unmodified lines | ||
| 45 | 45 | DMUO_ATANH = 12, |
| 46 | 46 | DMUO_CEIL = 13, |
| 47 | 47 | DMUO_FLOOR = 14, |
| 48 | + DMUO_ROUND = 15, | |
| 48 | 49 | DMUO_COUNT |
| 49 | 50 | } DNNMathUnaryOperation; |
| 50 | 51 | |