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

Method end

tools/cpp/ExprDebug.hpp:155–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153 mTimer.reset();
154 }
155 void end(const MNN::OperatorInfo* info) {
156 auto timeInMs = (float)mTimer.durationInUs() / 1000.0f;
157 std::get<0>(mInserIter->second) += timeInMs;
158 std::get<1>(mInserIter->second) += info->flops();
159 std::get<2>(mInserIter->second) ++;
160 }
161 void dump(bool dumpPerOp = false) {
162 if (dumpPerOp) {
163 auto cmp = [](const std::tuple<std::string, float, float, int>& first, const std::tuple<std::string, float, float, int>& second) {

Callers 2

beginMethod · 0.45
_initTimeTraceFunction · 0.45

Calls 2

durationInUsMethod · 0.80
flopsMethod · 0.45

Tested by

no test coverage detected