diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2023-08-22 08:25:57 +0100 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2023-09-07 16:03:50 +0000 |
commit | 7021ef064f7daeca260bb1f1bd61b5bbc6473aa5 (patch) | |
tree | 24a488954ab0a7c6e29e811429ad194af67c3880 /reference_model/CMakeLists.txt | |
parent | 391cc5e80559e46081b6aa12c344d820dc685c95 (diff) | |
download | reference_model-7021ef064f7daeca260bb1f1bd61b5bbc6473aa5.tar.gz |
Rework TOSA verification API
Change verifier API to consume verification configuration in a JSON
format and enable appropriate validation to be performed within the
verifier code in the reference model.
Also update to latest spec changes for main compliance but not yet
including bias support.
Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com>
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: I0ceaa1714dd041b00b5b29cd937c8f05e701bc4c
Diffstat (limited to 'reference_model/CMakeLists.txt')
-rw-r--r-- | reference_model/CMakeLists.txt | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/reference_model/CMakeLists.txt b/reference_model/CMakeLists.txt index 5a0195c..227d19f 100644 --- a/reference_model/CMakeLists.txt +++ b/reference_model/CMakeLists.txt @@ -56,6 +56,10 @@ if(NOT HALF_DIR) set(HALF_DIR "../thirdparty/serialization_lib/third_party/half") endif() +if(NOT JSON_DIR) + set(JSON_DIR "../thirdparty/json") +endif() + include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include) # Common sources required for TOSA Reference Model library, executable and unit tests @@ -67,7 +71,9 @@ set(CXX_SOURCE src/operators.cc src/subgraph_traverser.cc src/tensor.cc - src/verify.cc + src/verify/verify_dot_product.cc + src/verify/verify_entry.cc + src/verify/verify_utils.cc src/ops/op_factory.cc src/ops/tensor_ops.cc src/ops/activation_funcs.cc @@ -99,6 +105,7 @@ target_include_directories(tosa_reference_model_lib ${EIGEN_DIR}/unsupported/ ${SERIALIZATION_DIR}/include ${HALF_DIR}/include + ${JSON_DIR}/single_include ) target_link_libraries(tosa_reference_model_lib @@ -116,6 +123,7 @@ list(APPEND PUBLIC_HEADERS include/graph_status.h include/model_common.h include/model_runner.h + include/types.h include/verify.h include/version.h ) @@ -140,6 +148,7 @@ if(BUILD_TOSA_REFERENCE_MODEL_EXECUTABLE) ${EIGEN_DIR}/unsupported/ ${SERIALIZATION_DIR}/include ${HALF_DIR}/include + ${JSON_DIR}/single_include ) target_link_libraries(tosa_reference_model @@ -184,6 +193,7 @@ if(BUILD_TOSA_REFERENCE_MODEL_TESTS) ${SERIALIZATION_DIR}/include ${HALF_DIR}/include ${DOCTEST_DIR} + ${JSON_DIR}/single_include ) target_link_libraries(unit_tests |