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

Method run

tools/converter/source/caffe/Normalize.cpp:26–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24};
25
26void Normalize::run(MNN::OpT* dstOp, const caffe::LayerParameter& parameters, const caffe::LayerParameter& weight) {
27 auto normizeT = new MNN::NormalizeT;
28 dstOp->main.value = normizeT;
29 auto& l = parameters.norm_param();
30 normizeT->channelShared = l.channel_shared();
31 normizeT->acrossSpatial = l.across_spatial();
32 normizeT->eps = l.eps();
33 auto& scaleBlob = weight.blobs(0);
34 for (int i = 0; i < scaleBlob.data_size(); ++i) {
35 normizeT->scale.push_back(scaleBlob.data(i));
36 }
37}
38static OpConverterRegister<Normalize> a("Normalize");

Callers

nothing calls this directly

Calls 3

epsMethod · 0.80
push_backMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected