Skip to content

Commit

Permalink
[onert/test] Apply strict build to tflite_comparator
Browse files Browse the repository at this point in the history
This commit applies strict build to tflite_comparator.

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
  • Loading branch information
hseok-oh committed Jan 3, 2025
1 parent ac8885a commit 157d998
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/tools/tflite_comparator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ list(APPEND SOURCES "src/args.cc")

add_executable(tflite_comparator ${SOURCES})

target_link_libraries(tflite_comparator nnfw_common)
target_link_libraries(tflite_comparator nnfw-dev)
target_link_libraries(tflite_comparator nnfw_lib_tflite nnfw_lib_misc)
target_link_libraries(tflite_comparator arser)
Expand Down
3 changes: 2 additions & 1 deletion tests/tools/tflite_comparator/src/tflite_comparator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void randomBoolData(benchmark::RandomGenerator &randgen, std::vector<uint8_t> &d
inline uint64_t num_elems(const nnfw_tensorinfo *ti)
{
uint64_t n = 1;
for (uint32_t i = 0; i < ti->rank; ++i)
for (int32_t i = 0; i < ti->rank; ++i)
{
n *= ti->dims[i];
}
Expand Down Expand Up @@ -294,6 +294,7 @@ int main(const int argc, char **argv)
break;
case NNFW_TYPE_TENSOR_QUANT16_SYMM_SIGNED:
randomData<int16_t>(randgen, inputs[i]);
break;
case NNFW_TYPE_TENSOR_FLOAT32:
randomData<float>(randgen, inputs[i]);
break;
Expand Down

0 comments on commit 157d998

Please sign in to comment.