for (int i = 0; i < dims_count; ++i)
dst[i] = round(src[i]);
return 0;
+ case DMUO_EXP:
+ for (int i = 0; i < dims_count; ++i)
+ dst[i] = exp(src[i]);
+ return 0;
default:
av_log(ctx, AV_LOG_ERROR, "Unmatch math unary operator\n");
return DNN_ERROR;
self.mathbin2code = {'Sub':0, 'Add':1, 'Mul':2, 'RealDiv':3, 'Minimum':4, 'FloorMod':5}
self.mathun2code = {'Abs':0, 'Sin':1, 'Cos':2, 'Tan':3, 'Asin':4,
'Acos':5, 'Atan':6, 'Sinh':7, 'Cosh':8, 'Tanh':9, 'Asinh':10,
- 'Acosh':11, 'Atanh':12, 'Ceil':13, 'Floor':14, 'Round':15}
+ 'Acosh':11, 'Atanh':12, 'Ceil':13, 'Floor':14, 'Round':15,
+ 'Exp':16}
self.mirrorpad_mode = {'CONSTANT':0, 'REFLECT':1, 'SYMMETRIC':2}
self.name_operand_dict = {}