#include <NvInfer.h>
Legacy calibrator for compatibility with 2.0 EA. Will be removed in 2.2.
- Deprecated:
virtual double nvinfer1::IInt8LegacyCalibrator::getQuantile |
( |
| ) |
const |
|
pure virtual |
The quantile (between 0 and 1) that will be used to select the region maximum when the quantile method is in use.
See the user guide for more details on how the quantile is used.
virtual double nvinfer1::IInt8LegacyCalibrator::getRegressionCutoff |
( |
| ) |
const |
|
pure virtual |
The fraction (between 0 and 1) of the maximum used to define the regression cutoff when using regression to determine the region maximum.
See the user guide for more details on how the regression cutoff is used
virtual const void* nvinfer1::IInt8LegacyCalibrator::readHistogramCache |
( |
std::size_t & |
length | ) |
|
|
pure virtual |
Load a histogram.
Histogram generation is potentially expensive, so it can be useful to generate the histograms once, then use them when exploring the space of calibrations. The histograms should be regenerated if the network structure changes, or the input data set changes, and it is the responsibility of the application to ensure this.
- Parameters
-
length | The length of the cached data, that should be set by the called function. If there is no data, this should be zero. |
- Returns
- A pointer to the cache, or nullptr if there is no data.
virtual void nvinfer1::IInt8LegacyCalibrator::writeHistogramCache |
( |
const void * |
ptr, |
|
|
std::size_t |
length |
|
) |
| |
|
pure virtual |
Save a histogram cache.
- Parameters
-
ptr | A pointer to the data to cache. |
length | The length in bytes of the data to cache. |
- See Also
- readHistogramCache()
The documentation for this class was generated from the following file: