Fix INT8 calibration 2

This commit is contained in:
unknown
2021-11-26 17:38:30 -03:00
parent b6a7ec5d15
commit dcc44b730c

View File

@@ -30,6 +30,11 @@ namespace nvinfer1
delete[] batchData;
}
int Int8EntropyCalibrator2::getBatchSize() const noexcept
{
return batchSize;
}
bool Int8EntropyCalibrator2::getBatch(void **bindings, const char **names, int nbBindings) noexcept
{
if (imageIndex + batchSize > uint(imgPaths.size()))