Skip to content

Commit 5a5c8f1

Browse files
benizmergify[bot]
authored andcommitted
fix: deactivate the csvts NCNN test when caffe is not built
1 parent b9f8525 commit 5a5c8f1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ option(USE_TF "use TF backend" OFF)
1010
option(USE_NCNN "use NCNN backend" OFF)
1111
option(USE_TORCH "use libtorch backend" OFF)
1212
option(USE_HDF5 "use HDF5" ON)
13-
option(USE_CAFFE "use Caffe backend" ON)
1413
option(USE_TENSORRT "use TensorRT backend" OFF)
1514
option(USE_TENSORRT_OSS "alias of USE_TENSORRT" OFF)
1615
option(USE_XGBOOST "use XGBOOST backend" OFF)

tests/ut-ncnnapi.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ TEST(ncnnapi, service_predict_classification)
154154
ASSERT_TRUE(jd["body"]["predictions"][0]["classes"].Size() == 1000);
155155
}
156156

157+
#ifdef USE_CAFFE
157158
TEST(ncnnapi, service_lstm)
158159
{
159160
// create service
@@ -275,3 +276,4 @@ TEST(ncnnapi, service_lstm)
275276
ASSERT_EQ(ok_str, joutstr);
276277
rmdir(csvts_repo.c_str());
277278
}
279+
#endif

0 commit comments

Comments
 (0)