diff --git a/src/runtime/contrib/tensorrt/tensorrt_builder.cc b/src/runtime/contrib/tensorrt/tensorrt_builder.cc index 23f7339605df..c60928e95db4 100644 --- a/src/runtime/contrib/tensorrt/tensorrt_builder.cc +++ b/src/runtime/contrib/tensorrt/tensorrt_builder.cc @@ -61,9 +61,6 @@ TensorRTBuilder::TensorRTBuilder(TensorRTLogger* logger, this->calibrator_ = calibrator; if (calibrator != nullptr) { use_int8_ = true; - builder_->setFp16Mode(true); - builder_->setInt8Mode(true); - builder_->setInt8Calibrator(calibrator); } network_ = builder_->createNetworkV2(flags); #else