Skip to content

Commit bfeda52

Browse files
committed
chore: rebase and apply linting
Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]>
1 parent 2a9ebde commit bfeda52

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

.pre-commit-config.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ repos:
66
- id: trailing-whitespace
77
- id: check-added-large-files
88
- id: check-vcs-permalinks
9+
- id: check-merge-conflict
910
- id: mixed-line-ending
1011
args:
1112
- --fix=lf

core/conversion/converters/impl/conv_deconv.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ bool add_conv_deconv(ConversionCtx* ctx, const torch::jit::Node* n, args& args)
194194

195195
nvinfer1::Dims stride;
196196
stride.nbDims = in_nbDims;
197-
for (size_t i = 0; i < in_nbDims; i++) {
197+
for (int64_t i = 0; i < in_nbDims; i++) {
198198
stride.d[i] = 1;
199199
}
200200
const auto& dummy = stride;
@@ -206,7 +206,7 @@ bool add_conv_deconv(ConversionCtx* ctx, const torch::jit::Node* n, args& args)
206206

207207
nvinfer1::Dims constantDims;
208208
constantDims.nbDims = in_nbDims;
209-
for (size_t i = 0; i < in_nbDims; i++) {
209+
for (int64_t i = 0; i < in_nbDims; i++) {
210210
constantDims.d[i] = 1;
211211
}
212212
constantDims.d[diff - 1] =

core/ir/BUILD

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ config_setting(
1313
cc_library(
1414
name = "ir",
1515
srcs = [
16+
"GraphInputs.cpp",
1617
"Input.cpp",
1718
"StaticParams.cpp",
18-
"GraphInputs.cpp"
19+
"ir.cpp",
20+
],
21+
hdrs = [
22+
"ir.h",
1923
],
2024
deps = [
2125
"@tensorrt//:nvinfer",

tests/cpp/BUILD

+4-7
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ config_setting(
1212
test_suite(
1313
name = "api_tests",
1414
tests = [
15+
":test_collections",
1516
":test_compiled_modules",
1617
":test_default_input_types",
1718
":test_example_tensors",
@@ -20,15 +21,13 @@ test_suite(
2021
":test_multiple_registered_engines",
2122
":test_runtime_thread_safety",
2223
":test_serialization",
23-
":test_module_fallback",
24-
":test_example_tensors",
25-
":test_collections"
2624
],
2725
)
2826

2927
test_suite(
3028
name = "aarch64_api_tests",
3129
tests = [
30+
":test_collections",
3231
":test_compiled_modules",
3332
":test_default_input_types",
3433
":test_example_tensors",
@@ -37,9 +36,6 @@ test_suite(
3736
":test_multiple_registered_engines",
3837
":test_runtime_thread_safety",
3938
":test_serialization",
40-
":test_module_fallback",
41-
":test_example_tensors",
42-
":test_collections"
4339
],
4440
)
4541

@@ -141,8 +137,9 @@ cc_test(
141137
] + select({
142138
":use_pre_cxx11_abi": ["@libtorch_pre_cxx11_abi//:libtorch"],
143139
"//conditions:default": ["@libtorch//:libtorch"],
144-
})
140+
}),
145141
)
142+
146143
cc_test(
147144
name = "test_compiled_modules",
148145
srcs = ["test_compiled_modules.cpp"],

0 commit comments

Comments
 (0)