MCPcopy Create free account
hub / github.com/alibaba/MNN / selectForInt

Function selectForInt

source/backend/cpu/CPUUnary.cpp:442–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440}
441
442static 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
459MNNUnaryExecuteInt8 CPUUnary::selectForInt8(int type) {

Callers 3

onExecuteMethod · 0.85
onCreateMethod · 0.85
onCreateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected