Skip to content

Commit e332314

Browse files
authored
Merge pull request #599 from NVIDIA/jetpack_test_fix
fix(//tests): fix optional jetson tests
2 parents 0b5ac4c + 4c32a83 commit e332314

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test_suite(
1818
name = "aarch64_tests",
1919
tests = [
2020
"//tests/core:core_tests",
21-
"//tests/modules:aarch64_module_tests",
21+
"//tests/cpp:aarch64_api_tests",
2222
],
2323
)
2424

tests/accuracy/test_dla_fp16_accuracy.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ TEST_P(AccuracyTests, DLAFP16AccuracyIsClose) {
2727

2828
std::vector<std::vector<int64_t>> input_shape = {{32, 3, 32, 32}};
2929
auto compile_spec = trtorch::CompileSpec({input_shape});
30-
compile_spec.enabled_precisions.insert(torch::kF16);
30+
compile_spec.enabled_precisions = {torch::kF16};
3131
compile_spec.device.device_type = trtorch::CompileSpec::Device::DeviceType::kDLA;
3232
compile_spec.device.gpu_id = 0;
3333
compile_spec.device.dla_core = 1;

tests/accuracy/test_dla_int8_accuracy.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ TEST_P(AccuracyTests, DLAINT8AccuracyIsClose) {
2121
// Configure settings for compilation
2222
auto compile_spec = trtorch::CompileSpec({input_shape});
2323
// Set operating precision to INT8
24-
compile_spec.enabled_precisions.insert(torch::kI8);
24+
compile_spec.enabled_precisions = {torch::kF16, torch::kI8};
2525
// Use the TensorRT Entropy Calibrator
2626
compile_spec.ptq_calibrator = calibrator;
2727
// Set max batch size for the engine

0 commit comments

Comments
 (0)