Skip to content

Commit

Permalink
fix(//cpp/api): set a default for calibrator
Browse files Browse the repository at this point in the history
Signed-off-by: Naren Dasan <[email protected]>
Signed-off-by: Naren Dasan <[email protected]>
  • Loading branch information
narendasan committed Apr 24, 2020
1 parent 3afd209 commit 825be69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/api/include/trtorch/trtorch.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

/**
Expand Down

0 comments on commit 825be69

Please sign in to comment.