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

Function needComputeOp

source/utils/InitNet.cpp:15–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14namespace MNN {
15bool needComputeOp(const Op* op) {
16 if (op->type() != OpType_Input && op->type() != OpType_Const && op->type() != OpType_TrainableParam) {
17 return true;
18 }
19 return false;
20}
21bool computeShapeForBlob(const Blob* parameter, Tensor* output) {
22 bool zeroShape = false;
23 if (parameter->dims() != nullptr) {

Callers 5

_collectNeededOpsFunction · 0.85
_getConstDataFunction · 0.85
converToStaticModelFunction · 0.85
initPipelineInfosFromOpsFunction · 0.85
_collectNeededOpsFunction · 0.85

Calls 1

typeMethod · 0.45

Tested by

no test coverage detected