forked from etri/nest-compiler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add convolution test tempate add Conv_inception_5b_5x5_1__1 bundle test Signed-off-by: Yongin Kwon <[email protected]>
- Loading branch information
Yongin Kwon
committed
Dec 27, 2021
1 parent
04a58e5
commit 378047f
Showing
3 changed files
with
404 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
option(NESTC_USE_PRECOMPILED_BUNDLE "Use pre-compiled bundle" OFF) | ||
|
||
if(NOT NESTC_USE_PRECOMPILED_BUNDLE) | ||
add_custom_command( | ||
OUTPUT | ||
${CMAKE_CURRENT_BINARY_DIR}/Conv_inception_5b_5x5_1__1Bundle.cpp | ||
${CMAKE_CURRENT_BINARY_DIR}/Conv_inception_5b_5x5_1__1Input.bin | ||
${CMAKE_CURRENT_BINARY_DIR}/Conv_inception_5b_5x5_1__1Bundle.weights.bin | ||
${CMAKE_CURRENT_BINARY_DIR}/Conv_inception_5b_5x5_1__1Golden.bin | ||
${CMAKE_CURRENT_BINARY_DIR}/Conv_inception_5b_5x5_1__1MainEntry.h | ||
${CMAKE_CURRENT_BINARY_DIR}/VTARuntime.h | ||
COMMAND | ||
VTASaverTest --gtest_filter=VTASaverTest.Conv_inception_5b_5x5_1__1 | ||
DEPENDS | ||
VTASaverTest | ||
) | ||
else() | ||
add_custom_command( | ||
OUTPUT | ||
${CMAKE_CURRENT_BINARY_DIR}/Conv_inception_5b_5x5_1__1Bundle.cpp | ||
${CMAKE_CURRENT_BINARY_DIR}/Conv_inception_5b_5x5_1__1Input.bin | ||
${CMAKE_CURRENT_BINARY_DIR}/Conv_inception_5b_5x5_1__1Bundle.weights.bin | ||
${CMAKE_CURRENT_BINARY_DIR}/Conv_inception_5b_5x5_1__1Golden.bin | ||
${CMAKE_CURRENT_BINARY_DIR}/Conv_inception_5b_5x5_1__1MainEntry.h | ||
${CMAKE_CURRENT_BINARY_DIR}/VTARuntime.h | ||
COMMAND | ||
wget https://gitlab.com/yongin.kwon/nestc-data/-/raw/master/VTABundleTests/Conv_inception_5b_5x5_1__1/Conv_inception_5b_5x5_1__1Bundle.cpp -O ${CMAKE_CURRENT_BINARY_DIR}/Conv_inception_5b_5x5_1__1Bundle.cpp | ||
COMMAND | ||
wget https://gitlab.com/yongin.kwon/nestc-data/-/raw/master/VTABundleTests/Conv_inception_5b_5x5_1__1/Conv_inception_5b_5x5_1__1Input.bin -O ${CMAKE_CURRENT_BINARY_DIR}/Conv_inception_5b_5x5_1__1Input.bin --no-verbose | ||
COMMAND | ||
wget https://gitlab.com/yongin.kwon/nestc-data/-/raw/master/VTABundleTests/Conv_inception_5b_5x5_1__1/Conv_inception_5b_5x5_1__1Bundle.weights.bin -O ${CMAKE_CURRENT_BINARY_DIR}/Conv_inception_5b_5x5_1__1Bundle.weights.bin --no-verbose | ||
COMMAND | ||
wget https://gitlab.com/yongin.kwon/nestc-data/-/raw/master/VTABundleTests/Conv_inception_5b_5x5_1__1/Conv_inception_5b_5x5_1__1Golden.bin -O ${CMAKE_CURRENT_BINARY_DIR}/Conv_inception_5b_5x5_1__1Golden.bin --no-verbose | ||
COMMAND | ||
wget https://gitlab.com/yongin.kwon/nestc-data/-/raw/master/VTABundleTests/Conv_inception_5b_5x5_1__1/Conv_inception_5b_5x5_1__1MainEntry.h -O ${CMAKE_CURRENT_BINARY_DIR}/Conv_inception_5b_5x5_1__1MainEntry.h | ||
COMMAND | ||
wget https://gitlab.com/yongin.kwon/nestc-data/-/raw/master/VTABundleTests/Conv_inception_5b_5x5_1__1/VTARuntime.h -O ${CMAKE_CURRENT_BINARY_DIR}/VTARuntime.h | ||
|
||
) | ||
endif() | ||
add_custom_target(Conv_inception_5b_5x5_1__1BundleNET DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/Conv_inception_5b_5x5_1__1Bundle.cpp | ||
${CMAKE_CURRENT_BINARY_DIR}/Conv_inception_5b_5x5_1__1Input.bin | ||
${CMAKE_CURRENT_BINARY_DIR}/Conv_inception_5b_5x5_1__1Bundle.weights.bin | ||
${CMAKE_CURRENT_BINARY_DIR}/Conv_inception_5b_5x5_1__1Golden.bin) | ||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) | ||
|
||
add_executable(Conv_inception_5b_5x5_1__1Bundle Conv_inception_5b_5x5_1__1BundleMain.cpp ${CMAKE_CURRENT_BINARY_DIR}/Conv_inception_5b_5x5_1__1Bundle.cpp) | ||
add_dependencies(Conv_inception_5b_5x5_1__1Bundle ${BUNDLE_DEPENDS}) | ||
target_link_libraries(Conv_inception_5b_5x5_1__1Bundle VTABundle ${BUNDLE_LINK_LIB}) | ||
set_target_properties( Conv_inception_5b_5x5_1__1Bundle | ||
PROPERTIES | ||
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" | ||
) | ||
|
||
add_nestc_test(ZCU102 NAME Conv_inception_5b_5x5_1__1Bundle | ||
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/Conv_inception_5b_5x5_1__1Bundle USE_SH 1 PARAMS ${CMAKE_CURRENT_BINARY_DIR}/Conv_inception_5b_5x5_1__1Input.bin | ||
USE_DIFF 1 DIFF_TARGET ${CMAKE_CURRENT_BINARY_DIR}/Conv_inception_5b_5x5_1__1Golden.bin) |
Oops, something went wrong.