parameters: (self)
docstring: Overrides from trt.IInt8EntropyCalibrator2.
          Read the calibration cache file stored on disk, if it exists.
          :return: The contents of the cache file, if any.
docstring_summary: Overrides from trt.IInt8EntropyCalibrator2.
          Read the calibration cache file stored on disk, if it exists.
          :return: The contents of the cache file, if any.
docstring_tokens: Overrides from trt . IInt8EntropyCalibrator2 . Read the calibration cache file stored on disk if it exists . : return : The contents of the cache file if any .
function: def read_calibration_cache(self):
          """
          Overrides from trt.IInt8EntropyCalibrator2.
          Read the calibration cache file stored on disk, if it exists.
          :return: The contents of the cache file, if any.
          """
          if os.path.exists(self.cache_file):
              with open(self.cache_file, "rb") as f:
                  log.info("Using calibration cache file: {}".format(self.cache_file))
                  return f.read()
function_tokens: def read_calibration_cache ( self ) : if os . path . exists ( self . cache_file ) : with open ( self . cache_file , "rb" ) as f : log . info ( "Using calibration cache file: {}" . format ( self . cache_file ) ) return f . read ( )