Skip to content

Commit

Permalink
[onert/onert_train] Use arser for onert_train (#13562)
Browse files Browse the repository at this point in the history
This commit updates onert_train to use arser for argument parsing instead of boost::program_options.

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
  • Loading branch information
hseok-oh authored Jul 31, 2024
1 parent 6256b2e commit bb70676
Show file tree
Hide file tree
Showing 4 changed files with 176 additions and 189 deletions.
4 changes: 1 addition & 3 deletions tests/tools/onert_train/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ list(APPEND ONERT_TRAIN_SRCS "src/rawformatter.cc")
list(APPEND ONERT_TRAIN_SRCS "src/rawdataloader.cc")
list(APPEND ONERT_TRAIN_SRCS "src/metrics.cc")

nnfw_find_package(Boost REQUIRED program_options)
nnfw_find_package(HDF5 QUIET)

if (HDF5_FOUND)
Expand All @@ -32,11 +31,10 @@ else()
endif(HDF5_FOUND)

target_include_directories(onert_train PRIVATE src)
target_include_directories(onert_train PRIVATE ${Boost_INCLUDE_DIRS})

target_link_libraries(onert_train nnfw_lib_tflite jsoncpp)
target_link_libraries(onert_train nnfw-dev)
target_link_libraries(onert_train ${Boost_PROGRAM_OPTIONS_LIBRARY})
target_link_libraries(onert_train arser)
target_link_libraries(onert_train nnfw_lib_benchmark)

install(TARGETS onert_train DESTINATION bin)
Expand Down
Loading

0 comments on commit bb70676

Please sign in to comment.