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

Function _Permute

express/NeuralNetWorkOp.cpp:1390–1398  ·  view source on GitHub ↗

SSD network's permute layer. Args: input: A variable. Contains the feature map. Namely bottom[0] in caffe. dims: A vector. Contains the order. Returns: A variable. */

Source from the content-addressed store, hash-verified

1388A variable.
1389*/
1390VARP _Permute(VARP input, INTS dims) {
1391 std::unique_ptr<OpT> op(new OpT);
1392 op->type = OpType_Permute;
1393 auto param = new PermuteT;
1394 param->dims = dims;
1395 op->main.type = OpParameter_Permute;
1396 op->main.value = param;
1397 return Variable::create(Expr::create(std::move(op), {input}));
1398}
1399/*SSD network's detectionoutput layer.
1400Args:
1401location: A variable.

Callers 10

onExecuteMethod · 0.85
onExecuteMethod · 0.85
onExecuteMethod · 0.85
qwen2VisionProcessMethod · 0.85
smolvlmVisionProcessMethod · 0.85
minicpmVisionProcessMethod · 0.85
audioProcessMethod · 0.85
ditForwardMethod · 0.85
ditForwardAsyncMethod · 0.85
runMethod · 0.85

Calls 1

createFunction · 0.50

Tested by 1

runMethod · 0.68