Fix INT8 calibration 2
This commit is contained in:
@@ -30,6 +30,11 @@ namespace nvinfer1
|
|||||||
delete[] batchData;
|
delete[] batchData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int Int8EntropyCalibrator2::getBatchSize() const noexcept
|
||||||
|
{
|
||||||
|
return batchSize;
|
||||||
|
}
|
||||||
|
|
||||||
bool Int8EntropyCalibrator2::getBatch(void **bindings, const char **names, int nbBindings) noexcept
|
bool Int8EntropyCalibrator2::getBatch(void **bindings, const char **names, int nbBindings) noexcept
|
||||||
{
|
{
|
||||||
if (imageIndex + batchSize > uint(imgPaths.size()))
|
if (imageIndex + batchSize > uint(imgPaths.size()))
|
||||||
|
|||||||
Reference in New Issue
Block a user