MCPcopy Create free account
hub / github.com/cyrusbehr/tensorrt-cpp-api / log

Method log

src/engine.cpp:20–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20void 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
31Int8EntropyCalibrator2::Int8EntropyCalibrator2(int32_t batchSize, int32_t inputW, int32_t inputH, const std::string &calibDataDirPath,
32 const std::string &calibTableName, const std::string &inputBlobName,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected