38 static const std::unordered_map<ElementwiseUnaryType, std::string> name_map{
39 {ElementwiseUnaryType::ABS, std::string{
"Abs"}},
40 {ElementwiseUnaryType::CAST, std::string{
"Cast"}},
41 {ElementwiseUnaryType::COS, std::string{
"Cos"}},
42 {ElementwiseUnaryType::DEQUANTIZE, std::string{
"Dequantize"}},
43 {ElementwiseUnaryType::ERF, std::string{
"Erf"}},
44 {ElementwiseUnaryType::EXP, std::string{
"Exp"}},
45 {ElementwiseUnaryType::FLOOR, std::string{
"Floor"}},
46 {ElementwiseUnaryType::LOG, std::string{
"Log"}},
47 {ElementwiseUnaryType::LOGICAL_NOT, std::string{
"LogicalNot"}},
48 {ElementwiseUnaryType::NEG, std::string{
"Neg"}},
49 {ElementwiseUnaryType::QUANTIZE, std::string{
"Quantize"}},
50 {ElementwiseUnaryType::ROUND, std::string{
"Round"}},
51 {ElementwiseUnaryType::RSQRT, std::string{
"RSqrt"}},
52 {ElementwiseUnaryType::SIN, std::string{
"Sin"}},
53 {ElementwiseUnaryType::SQRT, std::string{
"Sqrt"}},
54 {ElementwiseUnaryType::SQUARE, std::string{
"Square"}},
55 {ElementwiseUnaryType::ZEROS_LIKE, std::string{
"ZerosLike"}}};
56 return name_map.at(_param.
op_type);