# generate tengine header file
FILE (MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/tengine)
FILE (COPY ${CMAKE_SOURCE_DIR}/source/api/c_api.h DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/tengine)
FILE (COPY ${CMAKE_SOURCE_DIR}/source/api/c_api_ex.h DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/tengine)
if (TENGINE_ENABLE_OPENDLA)
function (tengine_opendla_op_test name file)
file(GLOB TENGINE_UTIL_SOURCE_FILES ${PROJECT_SOURCE_DIR}/tests/common/util/*.c)
add_executable (${name} ${CMAKE_CURRENT_SOURCE_DIR}/${file} "${TENGINE_UTIL_SOURCE_FILES}" "${PROJECT_SOURCE_DIR}/tests/common/tengine_operations.c")
target_link_libraries (${name} PRIVATE ${CMAKE_PROJECT_NAME})
target_include_directories (${name} PRIVATE "${PROJECT_SOURCE_DIR}/source")
target_include_directories (${name} PRIVATE "${CMAKE_CURRENT_BINARY_DIR}")
target_include_directories (${name} PRIVATE "${PROJECT_BINARY_DIR}")
target_include_directories (${name} PRIVATE "${PROJECT_BINARY_DIR}/source")
target_include_directories (${name} PRIVATE "${PROJECT_SOURCE_DIR}/tests/common")
target_include_directories (${name} PRIVATE "${PROJECT_SOURCE_DIR}/tests/common/util")
if (${TENGINE_TARGET_PROCESSOR} MATCHES "ARM" AND (NOT ANDROID AND NOT OHOS) AND TENGINE_TARGET_PROCESSOR_32Bit)
target_compile_options (${name} PRIVATE "-mfp16-format=ieee")
endif()
add_test (${name} ${name})
# add to a virtual project group
SET_PROPERTY(TARGET ${name} PROPERTY FOLDER "tests/test_opendla")
endfunction()
tengine_opendla_op_test(test_opendla_op_concat op/test_opendla_op_concat.cpp)
tengine_opendla_op_test(test_opendla_op_convolution op/test_opendla_op_convolution.cpp)
tengine_opendla_op_test(test_opendla_op_deconv op/test_opendla_op_deconv.cpp)
tengine_opendla_op_test(test_opendla_op_groupconvolution op/test_opendla_op_groupconvolution.cpp)
tengine_opendla_op_test(test_opendla_op_eltwise op/test_opendla_op_eltwise.cpp)
tengine_opendla_op_test(test_opendla_op_fc op/test_opendla_op_fc.cpp)
tengine_opendla_op_test(test_opendla_op_pooling op/test_opendla_op_pooling.cpp)
tengine_opendla_op_test(test_opendla_op_relu op/test_opendla_op_relu.cpp)
tengine_opendla_op_test(test_opendla_op_split op/test_opendla_op_split.cpp)
endif()
if (TENGINE_ENABLE_TIM_VX)
function (tengine_timvx_op_test name file)
file(GLOB TENGINE_UTIL_SOURCE_FILES ${PROJECT_SOURCE_DIR}/tests/common/util/*.c)
add_executable (${name} ${CMAKE_CURRENT_SOURCE_DIR}/${file} "${TENGINE_UTIL_SOURCE_FILES}" "${PROJECT_SOURCE_DIR}/tests/common/tengine_operations.c")
target_link_libraries (${name} PRIVATE ${CMAKE_PROJECT_NAME})
target_include_directories (${name} PRIVATE "${PROJECT_SOURCE_DIR}/source")
target_include_directories (${name} PRIVATE "${CMAKE_CURRENT_BINARY_DIR}")
target_include_directories (${name} PRIVATE "${PROJECT_BINARY_DIR}")
target_include_directories (${name} PRIVATE "${PROJECT_BINARY_DIR}/source")
target_include_directories (${name} PRIVATE "${PROJECT_SOURCE_DIR}/tests/common")
target_include_directories (${name} PRIVATE "${PROJECT_SOURCE_DIR}/tests/common/util")
if (${TENGINE_TARGET_PROCESSOR} MATCHES "ARM" AND (NOT ANDROID AND NOT OHOS) AND TENGINE_TARGET_PROCESSOR_32Bit)
target_compile_options (${name} PRIVATE "-mfp16-format=ieee")
endif()
add_test (${name} ${name})
# add to a virtual project group
SET_PROPERTY(TARGET ${name} PROPERTY FOLDER "tests/test_timvx")
endfunction()
tengine_timvx_op_test(test_timvx_op_clip op/test_timvx_op_clip.cpp)
tengine_timvx_op_test(test_timvx_op_concat op/test_timvx_op_concat.cpp)
tengine_timvx_op_test(test_timvx_op_convolution op/test_timvx_op_convolution.cpp)
tengine_timvx_op_test(test_timvx_op_crop op/test_timvx_op_crop.cpp)
tengine_timvx_op_test(test_timvx_op_deconv op/test_timvx_op_deconv.cpp)
tengine_timvx_op_test(test_timvx_op_dropout op/test_timvx_op_dropout.cpp)
tengine_timvx_op_test(test_timvx_op_eltwise_mul op/test_timvx_op_eltwise_mul.cpp)
tengine_timvx_op_test(test_timvx_op_eltwise_sum op/test_timvx_op_eltwise_sum.cpp)
tengine_timvx_op_test(test_timvx_op_elu op/test_timvx_op_elu.cpp)
tengine_timvx_op_test(test_timvx_op_fc op/test_timvx_op_fc.cpp)
tengine_timvx_op_test(test_timvx_op_flatten op/test_timvx_op_flatten.cpp)
tengine_timvx_op_test(test_timvx_op_gather op/test_timvx_op_gather.cpp)
tengine_timvx_op_test(test_timvx_op_hardswish op/test_timvx_op_hardswish.cpp)
tengine_timvx_op_test(test_timvx_op_interp op/test_timvx_op_interp.cpp)
tengine_timvx_op_test(test_timvx_op_leakyrelu op/test_timvx_op_leakyrelu.cpp)
tengine_timvx_op_test(test_timvx_op_mish op/test_timvx_op_mish.cpp)
tengine_timvx_op_test(test_timvx_op_pad op/test_timvx_op_pad.cpp)
tengine_timvx_op_test(test_timvx_op_permute op/test_timvx_op_permute.cpp)
tengine_timvx_op_test(test_timvx_op_pooling op/test_timvx_op_pooling.cpp)
tengine_timvx_op_test(test_timvx_op_prelu op/test_timvx_op_prelu.cpp)
tengine_timvx_op_test(test_timvx_op_reduction op/test_timvx_op_reduction.cpp)
tengine_timvx_op_test(test_timvx_op_relu op/test_timvx_op_relu.cpp)
# tengine_timvx_op_test(test_timvx_op_relu1 op/test_timvx_op_relu1.cpp)
tengine_timvx_op_test(test_timvx_op_reshape op/test_timvx_op_reshape.cpp)
tengine_timvx_op_test(test_timvx_op_resize op/test_timvx_op_resize.cpp)
tengine_timvx_op_test(test_timvx_op_sigmoid op/test_timvx_op_sigmoid.cpp)
tengine_timvx_op_test(test_timvx_op_slice op/test_timvx_op_slice.cpp)
tengine_timvx_op_test(test_timvx_op_softmax op/test_timvx_op_softmax.cpp)
tengine_timvx_op_test(test_timvx_op_split op/test_timvx_op_split.cpp)
tengine_timvx_op_test(test_timvx_op_tanh op/test_timvx_op_tanh.cpp)
tengine_timvx_op_test(test_timvx_op_transpose op/test_timvx_op_transpose.cpp)
tengine_timvx_op_test(test_timvx_op_upsampling op/test_timvx_op_upsampling.cpp)
# timvx model test, need opencv
FIND_PACKAGE(OpenCV QUIET)
IF (OpenCV_FOUND)
# macro for adding examples
FUNCTION (TENGINE_TIMVX_MODEL_TEST name file)
ADD_EXECUTABLE (${name} "${CMAKE_CURRENT_SOURCE_DIR}/${file}" "${CMAKE_CURRENT_SOURCE_DIR}/common/tengine_operations.c")
TARGET_INCLUDE_DIRECTORIES (${name} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
TARGET_INCLUDE_DIRECTORIES (${name} PRIVATE "${CMAKE_CURRENT_BINARY_DIR}")
TARGET_INCLUDE_DIRECTORIES (${name} PRIVATE "${PROJECT_SOURCE_DIR}/tests/common")
TARGET_LINK_LIBRARIES (${name} ${CMAKE_PROJECT_NAME} ${OpenCV_LIBS})
INSTALL (TARGETS ${name} DESTINATION bin)
ENDFUNCTION()
TENGINE_TIMVX_MODEL_TEST (test_timvx_model_yolov5s models/test_timvx_model_yolov5s.cpp)
ELSE()
MESSAGE (WARNING "OpenCV not found, some examples won't be built")
ENDIF()
endif()
if (TENGINE_ENABLE_TENSORRT)
function (tengine_tensorrt_op_test name file)
file(GLOB TENGINE_UTIL_SOURCE_FILES ${PROJECT_SOURCE_DIR}/tests/common/util/*.c)
add_executable (${name} ${CMAKE_CURRENT_SOURCE_DIR}/${file} "${TENGINE_UTIL_SOURCE_FILES}" "${PROJECT_SOURCE_DIR}/tests/common/tengine_operations.c")
target_link_libraries (${name} PRIVATE ${CMAKE_PROJECT_NAME})
target_include_directories (${name} PRIVATE "${PROJECT_SOURCE_DIR}/source")
target_include_directories (${name} PRIVATE "${CMA
没有合适的资源?快使用搜索试试~ 我知道了~
Tengine-tensorflow安装
共1760个文件
c:460个
cpp:260个
h:244个
需积分: 1 0 下载量 51 浏览量
2024-11-09
06:08:02
上传
评论
收藏 16.74MB ZIP 举报
温馨提示
Tengine is a lite, high performance, modular inference engine for embedded device tensorflow安装 tensorflow安装 tensorflow安装 tensorflow安装 tensorflow安装
资源推荐
资源详情
资源评论
收起资源包目录
Tengine-tensorflow安装 (1760个子文件)
make.bat 795B
make.bat 795B
conv_dw_kernel_x86.c 96KB
conv_kernel_int8_arm.c 89KB
conv_kernel_x86.c 80KB
wino_conv_kernel_arm.c 61KB
wino_conv_kernel_x86.c 56KB
wino_conv_kernel_1_arm.c 56KB
wino_conv_kernel_mips.c 42KB
tm2_serializer.c 35KB
lstm_ref.c 34KB
tengine_operations.c 31KB
tengine_operations.c 31KB
c_api.c 30KB
eltwise_ref.c 29KB
conv_kernel_arm.c 27KB
split.c 26KB
conv_kernel_rv64.c 26KB
conv_kernel_fp16_arm82.c 24KB
conv_kernel_mips.c 23KB
tm_efficientdet_uint8.c 22KB
deconv_kernel_arm.c 22KB
deconv_dw_kernel_arm.c 21KB
cpu_dump.c 21KB
tm_efficientdet.c 20KB
slice_ref.c 20KB
pad_ref.c 19KB
conv_dw_kernel_rv64.c 18KB
odla_dump.c 18KB
detection_postprocess_ref.c 18KB
conv_dw_hcl_x86.c 17KB
gru_ref.c 17KB
interp_kernel_arm.c 17KB
interp_ref.c 17KB
conv_direct_hcl_int8_x86.c 16KB
scatter_ref.c 16KB
timvx_dump.c 16KB
fc_ref.c 16KB
resize_ref.c 16KB
concat_kernel_ref_uint8.c 16KB
conv_hcl_arm.c 15KB
transpose_ref.c 15KB
concat_kernel_ref_int8.c 15KB
module.c 14KB
prelu_ref.c 14KB
comparison_kernel_ref_fp32.c 14KB
detection_output_ref.c 13KB
reshape_ref.c 13KB
md5.c 13KB
conv_hcl_x86.c 13KB
spatialtransformer_ref.c 13KB
rpn_ref.c 12KB
cpu_pool.c 12KB
conv_dw_kernel_arm.c 12KB
cpu_device.c 12KB
fc_kernel_int8_arm.c 12KB
deconv_ref.c 12KB
permute_ref.c 12KB
concat_kernel_ref_fp32.c 11KB
crop_ref.c 11KB
gather_ref.c 10KB
spacetobatchnd_ref.c 10KB
test_model_efficientdet.c 10KB
reverse_ref.c 9KB
fc_hcl_arm.c 9KB
lrn_kernel_arm.c 9KB
tm_classification_timvx.c 9KB
fc_hcl_x86.c 9KB
conv_dw_kernel_mips.c 9KB
cpu.c 9KB
basesocket.c 9KB
tm_classification_opendla.c 9KB
conv_dw_kernel_int8_arm.c 9KB
conv_hcl_mips.c 9KB
tm_classification_uint8.c 9KB
tensor.c 9KB
tm_classification_int8.c 9KB
conv_dw_hcl_arm.c 9KB
tm_classification.c 9KB
rnn_ref.c 8KB
softmax_hcl_arm.c 8KB
conv_hcl_rv64.c 8KB
depthtospace_ref.c 8KB
tm_classification_fp16.c 8KB
graph.c 8KB
instancenorm_ref.c 8KB
tm_classification_acl.c 8KB
priorbox_ref.c 8KB
sigmoid_ref.c 8KB
conv_kernel_ref_uint8.c 8KB
mvn_ref.c 8KB
tm_classification_vulkan.c 8KB
onlinereportmgr.c 8KB
l2pool_ref.c 8KB
tm_mobilenet_ssd_acl.c 7KB
conv_dw_kernel_fp16_arm82.c 7KB
tm_mobilenet_ssd.c 7KB
conv_kernel_ref_int8.c 7KB
split_ref.c 7KB
cpu_module.c 7KB
共 1760 条
- 1
- 2
- 3
- 4
- 5
- 6
- 18
资源评论
lly202406
- 粉丝: 2748
- 资源: 5461
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功