Skip to content

Commit

Permalink
fix(ncnn): fix ncnnapi deserialization error
Browse files Browse the repository at this point in the history
NCNN ci was not executed
  • Loading branch information
Bycob authored and mergify[bot] committed May 17, 2021
1 parent 916338b commit 089aacd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
3 changes: 1 addition & 2 deletions src/apidata.cc
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ namespace dd
{
APIData ad;
ad.fromRapidJson(jval[cit->name.GetString()]);
std::vector<APIData> vad = { ad };
add(cit->name.GetString(), vad);
add(cit->name.GetString(), ad);
}
else if (cit->value.IsArray()) // only supports array that bears a
// single type, number, string or object
Expand Down
9 changes: 1 addition & 8 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -287,15 +287,8 @@ if (USE_NCNN)
"ocr"
)


if(USE_JSON_API)
# REGISTER_TEST(ut_ncnnapi ut-ncnnapi.cc)
# Temporary don't register the test, just compile it.
if (NOT TARGET $ut_ncnnapi)
add_executable(ut_ncnnapi ut-ncnnapi.cc)
add_dependencies(ut_ncnnapi protobuf)
target_link_libraries(ut_ncnnapi ${COMMON_LINK_LIBS} gtest gtest_main)
endif()
REGISTER_TEST(ut_ncnnapi ut-ncnnapi.cc)
endif()
endif()

Expand Down

0 comments on commit 089aacd

Please sign in to comment.