| 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) { |
no test coverage detected