Skip to content

Commit

Permalink
refactor: apply linting
Browse files Browse the repository at this point in the history
Signed-off-by: Naren Dasan <naren@narendasan.com>
Signed-off-by: Naren Dasan <narens@nvidia.com>
  • Loading branch information
narendasan committed Aug 7, 2021
1 parent 88e9335 commit 2cd9fad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion core/conversion/conversionctx/ConversionCtx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ ConversionCtx::ConversionCtx(BuilderSettings build_settings)
TRTORCH_CHECK(builder->platformHasFastInt8(), "Requested inference in INT8 but platform does not support INT8");
cfg->setFlag(nvinfer1::BuilderFlag::kINT8);
if (settings.calibrator == nullptr) {
LOG_INFO("INT8 kernels are enabled but not calibrator was provided, assuming source model was trained quantization aware");
LOG_INFO(
"INT8 kernels are enabled but not calibrator was provided, assuming source model was trained quantization aware");
}
break;
case nvinfer1::DataType::kFLOAT:
Expand Down
6 changes: 3 additions & 3 deletions core/util/trt_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ inline std::ostream& operator<<(std::ostream& stream, const nvinfer1::DeviceType
inline std::ostream& operator<<(std::ostream& stream, const nvinfer1::EngineCapability& cap) {
switch (cap) {
case nvinfer1::EngineCapability::kSTANDARD:
return stream << "Default";
return stream << "standard";
case nvinfer1::EngineCapability::kSAFETY:
return stream << "Safe GPU";
return stream << "safety";
case nvinfer1::EngineCapability::kDLA_STANDALONE:
return stream << "Safe DLA";
return stream << "DLA standalone";
default:
return stream << "Unknown Engine Capability Setting";
}
Expand Down

0 comments on commit 2cd9fad

Please sign in to comment.