Skip to content

Commit f330a10

Browse files
committed
refactor: remove extra returns
Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]>
1 parent 0235dbe commit f330a10

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

core/ir/Input.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ bool valid_dtype_format_combo(nvinfer1::DataType dtype, nvinfer1::TensorFormat f
1212
case nvinfer1::TensorFormat::kLINEAR:
1313
return true;
1414
case nvinfer1::TensorFormat::kHWC:
15-
return false;
1615
default:
1716
return false;
1817
}
@@ -21,7 +20,6 @@ bool valid_dtype_format_combo(nvinfer1::DataType dtype, nvinfer1::TensorFormat f
2120
case nvinfer1::TensorFormat::kLINEAR:
2221
return true;
2322
case nvinfer1::TensorFormat::kHWC:
24-
return false;
2523
default:
2624
return false;
2725
}
@@ -30,7 +28,6 @@ bool valid_dtype_format_combo(nvinfer1::DataType dtype, nvinfer1::TensorFormat f
3028
case nvinfer1::TensorFormat::kLINEAR:
3129
return true;
3230
case nvinfer1::TensorFormat::kHWC:
33-
return false;
3431
default:
3532
return false;
3633
}

0 commit comments

Comments
 (0)