From 825be69b326d77abd071d780d5c63721cbfe3588 Mon Sep 17 00:00:00 2001 From: Naren Dasan Date: Fri, 24 Apr 2020 12:51:39 -0700 Subject: [PATCH] fix(//cpp/api): set a default for calibrator Signed-off-by: Naren Dasan Signed-off-by: Naren Dasan --- cpp/api/include/trtorch/trtorch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/api/include/trtorch/trtorch.h b/cpp/api/include/trtorch/trtorch.h index 46014186ea..b2c99a136e 100644 --- a/cpp/api/include/trtorch/trtorch.h +++ b/cpp/api/include/trtorch/trtorch.h @@ -215,7 +215,7 @@ struct TRTORCH_API ExtraInfo { /** * Calibration dataloaders for each input for post training quantizatiom */ - nvinfer1::IInt8Calibrator* ptq_calibrator; + nvinfer1::IInt8Calibrator* ptq_calibrator = nullptr; }; /**