| 120 | } |
| 121 | |
| 122 | void 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 | |
| 128 | Int8EntropyCalibrator2::~Int8EntropyCalibrator2() { checkCudaErrorCode(cudaFree(m_deviceInput)); }; |
nothing calls this directly
no outgoing calls
no test coverage detected