diff --git a/core/conversion/conversionctx/ConversionCtx.cpp b/core/conversion/conversionctx/ConversionCtx.cpp index 8a1728daa3..628952b317 100644 --- a/core/conversion/conversionctx/ConversionCtx.cpp +++ b/core/conversion/conversionctx/ConversionCtx.cpp @@ -79,7 +79,8 @@ ConversionCtx::ConversionCtx(BuilderSettings build_settings) case nvinfer1::DataType::kINT32: case nvinfer1::DataType::kBOOL: default: - TRTORCH_THROW_ERROR("Requested kernel precision that is unsupported: " << *p << " options are float, half, int8"); + TRTORCH_THROW_ERROR( + "Requested kernel precision that is unsupported: " << *p << " options are float, half, int8"); } } diff --git a/cpp/api/src/compile_spec.cpp b/cpp/api/src/compile_spec.cpp index d1b88f9638..3ee7d5cf91 100644 --- a/cpp/api/src/compile_spec.cpp +++ b/cpp/api/src/compile_spec.cpp @@ -126,7 +126,8 @@ CompileSpec::DataType::DataType(c10::ScalarType t) { CompileSpec::TensorFormat::TensorFormat(at::MemoryFormat t) { TRTORCH_CHECK( - t == at::MemoryFormat::Contiguous || t == at::MemoryFormat::ChannelsLast, "Tensor format is unsupported (" << t << ")"); + t == at::MemoryFormat::Contiguous || t == at::MemoryFormat::ChannelsLast, + "Tensor format is unsupported (" << t << ")"); switch (t) { case at::MemoryFormat::ChannelsLast: @@ -328,7 +329,8 @@ core::runtime::CudaDevice to_internal_cuda_device(CompileSpec::Device device) { core::CompileSpec to_internal_compile_spec(CompileSpec external) { core::CompileSpec internal(to_vec_internal_inputs(external.inputs)); if (external.input_ranges.size() > 0 && external.inputs.size() > 0) { - TRTORCH_THROW_ERROR("Saw both input specs listed for inputs and input_ranges in CompileSpec. input_ranges is deprecated and will be removed in v0.5.0. Please port forward to using inputs"); + TRTORCH_THROW_ERROR( + "Saw both input specs listed for inputs and input_ranges in CompileSpec. input_ranges is deprecated and will be removed in v0.5.0. Please port forward to using inputs"); } else if (external.input_ranges.size() > 0) { internal = core::CompileSpec(to_vec_internal_inputs(external.input_ranges)); } else {