-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Synchronize internal github for version 1.2.0 (#1518)
- Loading branch information
1 parent
75eed04
commit 58545d6
Showing
621 changed files
with
96,935 additions
and
34,577 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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,9 @@ | ||
// | ||
// benchmark.h | ||
// MNN | ||
// | ||
// Created by MNN on 2021/04/13. | ||
// Copyright © 2018, Alibaba Group Holding Limited | ||
// | ||
|
||
void iosBenchAll(const char* modelPath); |
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 |
---|---|---|
@@ -1,20 +1,40 @@ | ||
message(STATUS "MNN Depends:" ${MNN_DEPS}) | ||
set(MNN_EXEC_DEMOS "") | ||
|
||
add_executable(pictureRecognition.out ${CMAKE_CURRENT_LIST_DIR}/pictureRecognition.cpp) | ||
target_link_libraries(pictureRecognition.out ${MNN_DEPS}) | ||
list(APPEND MNN_EXEC_DEMOS pictureRecognition.out) | ||
add_executable(pictureRecognition_module.out ${CMAKE_CURRENT_LIST_DIR}/pictureRecognition_module.cpp) | ||
list(APPEND MNN_EXEC_DEMOS pictureRecognition_module.out) | ||
|
||
add_executable(pictureRotate.out ${CMAKE_CURRENT_LIST_DIR}/pictureRotate.cpp) | ||
target_link_libraries(pictureRotate.out ${MNN_DEPS}) | ||
list(APPEND MNN_EXEC_DEMOS pictureRotate.out) | ||
|
||
add_executable(multiPose.out ${CMAKE_CURRENT_LIST_DIR}/multiPose.cpp) | ||
target_link_libraries(multiPose.out ${MNN_DEPS}) | ||
list(APPEND MNN_EXEC_DEMOS multiPose.out) | ||
|
||
add_executable(segment.out ${CMAKE_CURRENT_LIST_DIR}/segment.cpp) | ||
target_link_libraries(segment.out ${MNN_DEPS}) | ||
list(APPEND MNN_EXEC_DEMOS segment.out) | ||
|
||
add_executable(expressDemo.out ${CMAKE_CURRENT_LIST_DIR}/expressDemo.cpp) | ||
target_link_libraries(expressDemo.out ${MNN_DEPS}) | ||
list(APPEND MNN_EXEC_DEMOS expressDemo.out) | ||
|
||
add_executable(transformerDemo.out ${CMAKE_CURRENT_LIST_DIR}/transformerDemo.cpp) | ||
target_link_libraries(transformerDemo.out ${MNN_DEPS}) | ||
list(APPEND MNN_EXEC_DEMOS transformerDemo.out) | ||
|
||
add_executable(rasterDemo.out ${CMAKE_CURRENT_LIST_DIR}/rasterDemo.cpp) | ||
target_link_libraries(rasterDemo.out ${MNN_DEPS}) | ||
list(APPEND MNN_EXEC_DEMOS rasterDemo.out) | ||
|
||
add_executable(nluDemo.out ${CMAKE_CURRENT_LIST_DIR}/nluDemo.cpp) | ||
list(APPEND MNN_EXEC_DEMOS nluDemo.out) | ||
|
||
foreach(TARGET ${MNN_EXEC_DEMOS}) | ||
target_link_libraries(${TARGET} ${MNN_DEPS}) | ||
if (MSVC) | ||
target_compile_definitions(${TARGET} PRIVATE "_CRT_SECURE_NO_WARNINGS") | ||
if (NOT MNN_BUILD_SHARED_LIBS) | ||
foreach (DEPEND ${MNN_DEPS}) | ||
target_link_options(${TARGET} PRIVATE /WHOLEARCHIVE:$<TARGET_FILE:${DEPEND}>) | ||
endforeach () | ||
endif() | ||
endif() | ||
endforeach() |
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
Oops, something went wrong.