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

Method writeCalibrationCache

src/engine.cpp:122–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void Int8EntropyCalibrator2::writeCalibrationCache(const void *ptr, std::size_t length) noexcept {
123 std::cout << "Writing calib cache: " << m_calibTableName << " Size: " << length << " bytes" << std::endl;
124 std::ofstream output(m_calibTableName, std::ios::binary);
125 output.write(reinterpret_cast<const char *>(ptr), length);
126}
127
128Int8EntropyCalibrator2::~Int8EntropyCalibrator2() { checkCudaErrorCode(cudaFree(m_deviceInput)); };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected