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

Function _StridedSlice

express/NeuralNetWorkOp.cpp:578–592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

576}
577
578VARP _StridedSlice(VARP input, VARP begin, VARP end, VARP strided, int32_t beginMask,
579 int32_t endMask, int32_t ellipsisMask, int32_t newAxisMask, int32_t shrinkAxisMask) {
580 std::unique_ptr<OpT> op(new OpT);
581 op->type = OpType_StridedSlice;
582 op->main.type = OpParameter_StridedSliceParam;
583 op->main.value = new StridedSliceParamT;
584
585 op->main.AsStridedSliceParam()->T = DataType_DT_FLOAT;
586 op->main.AsStridedSliceParam()->beginMask = beginMask;
587 op->main.AsStridedSliceParam()->endMask = endMask;
588 op->main.AsStridedSliceParam()->ellipsisMask = ellipsisMask;
589 op->main.AsStridedSliceParam()->newAxisMask = newAxisMask;
590 op->main.AsStridedSliceParam()->shrinkAxisMask = shrinkAxisMask;
591 return (Variable::create(Expr::create(op.get(), {input, begin, end, strided})));
592}
593
594VARP _StridedSliceWrite(VARP input, VARP begin, VARP end, VARP strided, VARP write, int32_t beginMask,
595 int32_t endMask, int32_t ellipsisMask, int32_t newAxisMask, int32_t shrinkAxisMask) {

Callers 7

onExecuteMethod · 0.85
ConvertMatMulToConv2DMethod · 0.85
onExecuteMethod · 0.85
runMethod · 0.85
runMethod · 0.85
PyMNNVar_subscriptFunction · 0.85
PyMNNExpr_strided_sliceFunction · 0.85

Calls 3

AsStridedSliceParamMethod · 0.80
createFunction · 0.50
getMethod · 0.45

Tested by 2

runMethod · 0.68
runMethod · 0.68