parameters: (self, cache)
docstring: Overrides from trt.IInt8EntropyCalibrator2.
          Store the calibration cache to a file on disk.
          :param cache: The contents of the calibration cache to store.
docstring_summary: Overrides from trt.IInt8EntropyCalibrator2.
          Store the calibration cache to a file on disk.
          :param cache: The contents of the calibration cache to store.
docstring_tokens: Overrides from trt . IInt8EntropyCalibrator2 . Store the calibration cache to a file on disk . : param cache : The contents of the calibration cache to store .
function: def write_calibration_cache(self, cache):
          """
          Overrides from trt.IInt8EntropyCalibrator2.
          Store the calibration cache to a file on disk.
          :param cache: The contents of the calibration cache to store.
          """
          with open(self.cache_file, "wb") as f:
              log.info("Writing calibration cache data to: {}".format(self.cache_file))
              f.write(cache)
function_tokens: def write_calibration_cache ( self , cache ) : with open ( self . cache_file , "wb" ) as f : log . info ( "Writing calibration cache data to: {}" . format ( self . cache_file ) ) f . write ( cache )