| 440 | } |
| 441 | |
| 442 | static MNNUnaryExecute selectForInt(int type) { |
| 443 | switch (type) { |
| 444 | case UnaryOpOperation_ABS: |
| 445 | return _unaryOp<UnaryAbs<int32_t>, int32_t>; |
| 446 | case UnaryOpOperation_NEG: |
| 447 | return _unaryOp<UnaryNeg<int32_t>, int32_t>; |
| 448 | case UnaryOpOperation_SQUARE: |
| 449 | return _unaryOp<UnarySquare<int32_t>, int32_t>; |
| 450 | case UnaryOpOperation_SIGN: |
| 451 | return _unaryOp<UnarySign<int32_t>, int32_t>; |
| 452 | default: |
| 453 | break; |
| 454 | } |
| 455 | return nullptr; |
| 456 | } |
| 457 | |
| 458 | |
| 459 | MNNUnaryExecuteInt8 CPUUnary::selectForInt8(int type) { |