Skip to content

Commit df87de3

Browse files
committed
refactor: apply linting
Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]>
1 parent ad52022 commit df87de3

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Diff for: core/conversion/conversionctx/ConversionCtx.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ ConversionCtx::ConversionCtx(BuilderSettings build_settings)
7979
case nvinfer1::DataType::kINT32:
8080
case nvinfer1::DataType::kBOOL:
8181
default:
82-
TRTORCH_THROW_ERROR("Requested kernel precision that is unsupported: " << *p << " options are float, half, int8");
82+
TRTORCH_THROW_ERROR(
83+
"Requested kernel precision that is unsupported: " << *p << " options are float, half, int8");
8384
}
8485
}
8586

Diff for: cpp/api/src/compile_spec.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ CompileSpec::DataType::DataType(c10::ScalarType t) {
126126

127127
CompileSpec::TensorFormat::TensorFormat(at::MemoryFormat t) {
128128
TRTORCH_CHECK(
129-
t == at::MemoryFormat::Contiguous || t == at::MemoryFormat::ChannelsLast, "Tensor format is unsupported (" << t << ")");
129+
t == at::MemoryFormat::Contiguous || t == at::MemoryFormat::ChannelsLast,
130+
"Tensor format is unsupported (" << t << ")");
130131

131132
switch (t) {
132133
case at::MemoryFormat::ChannelsLast:
@@ -328,7 +329,8 @@ core::runtime::CudaDevice to_internal_cuda_device(CompileSpec::Device device) {
328329
core::CompileSpec to_internal_compile_spec(CompileSpec external) {
329330
core::CompileSpec internal(to_vec_internal_inputs(external.inputs));
330331
if (external.input_ranges.size() > 0 && external.inputs.size() > 0) {
331-
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");
332+
TRTORCH_THROW_ERROR(
333+
"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");
332334
} else if (external.input_ranges.size() > 0) {
333335
internal = core::CompileSpec(to_vec_internal_inputs(external.input_ranges));
334336
} else {

0 commit comments

Comments
 (0)