| 18 | } |
| 19 | |
| 20 | void Logger::log(Severity severity, const char *msg) noexcept { |
| 21 | // Would advise using a proper logging utility such as |
| 22 | // https://github.com/gabime/spdlog For the sake of this tutorial, will just |
| 23 | // log to the console. |
| 24 | |
| 25 | // Only log Warnings or more important. |
| 26 | if (severity <= Severity::kWARNING) { |
| 27 | std::cout << msg << std::endl; |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | Int8EntropyCalibrator2::Int8EntropyCalibrator2(int32_t batchSize, int32_t inputW, int32_t inputH, const std::string &calibDataDirPath, |
| 32 | const std::string &calibTableName, const std::string &inputBlobName, |
nothing calls this directly
no outgoing calls
no test coverage detected