Skip to content

Commit a5aff8b

Browse files
peri044narendasan
authored andcommitted
chore: Linter fixes
Signed-off-by: Dheeraj Peri <[email protected]>
1 parent f9e1f2b commit a5aff8b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

core/conversion/converters/impl/batch_norm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ auto batch_norm_registrations TRTORCH_UNUSED = RegisterNodeConversionPatterns().
4040
LOG_DEBUG("momentum disregarded");
4141
LOG_DEBUG("training disregarded");
4242
LOG_DEBUG("cudnn disregarded");
43-
TRTORCH_CHECK(orig_shape.nbDims > 2 , "Unable to create batch normalization layer from node: " << *n);
43+
TRTORCH_CHECK(orig_shape.nbDims > 2, "Unable to create batch normalization layer from node: " << *n);
4444

4545
// Expand spatial dims from 1D to 2D if needed
4646
bool expandDims = (orig_shape.nbDims < 4);

core/conversion/converters/impl/conv_deconv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ bool add_conv_deconv(ConversionCtx* ctx, const torch::jit::Node* n, args& args)
3030
LOG_DEBUG("out_padding: " << out_padding);
3131
LOG_DEBUG("groups: " << groups);
3232

33-
TRTORCH_CHECK(orig_dims.nbDims > 2 , "Unable to create convolution layer from node: " << *n);
33+
TRTORCH_CHECK(orig_dims.nbDims > 2, "Unable to create convolution layer from node: " << *n);
3434

3535
bool expandDims = (orig_dims.nbDims < 4);
3636
if (expandDims) {

core/conversion/converters/impl/pooling.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ bool AdaptivePoolingConverter(
4848

4949
auto orig_dims = in->getDimensions();
5050
bool expandDims = (orig_dims.nbDims < 4);
51-
TRTORCH_CHECK(orig_dims.nbDims > 2 , "Unable to create pooling layer from node: " << *n);
51+
TRTORCH_CHECK(orig_dims.nbDims > 2, "Unable to create pooling layer from node: " << *n);
5252
if (expandDims) {
5353
in = addPadding(ctx, n, in, 4, false, false);
5454
}
@@ -122,7 +122,7 @@ bool PoolingConverter(ConversionCtx* ctx, const torch::jit::Node* n, args& args,
122122

123123
// Max Pool needs at least 4D input
124124
auto orig_dims = in->getDimensions();
125-
TRTORCH_CHECK(orig_dims.nbDims > 2 , "Unable to create pooling layer from node: " << *n);
125+
TRTORCH_CHECK(orig_dims.nbDims > 2, "Unable to create pooling layer from node: " << *n);
126126
bool expandDims = (orig_dims.nbDims < 4);
127127

128128
if (expandDims) {

0 commit comments

Comments
 (0)