From 4981ffc163d9ec43e78d262e74945cb5d9fede14 Mon Sep 17 00:00:00 2001 From: nihui Date: Fri, 21 May 2021 22:21:59 +0800 Subject: [PATCH] build smaller binary size --- src/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6b595d8..447ee47 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -94,6 +94,7 @@ if(NOT USE_SYSTEM_NCNN) option(NCNN_INSTALL_SDK "" OFF) option(NCNN_PIXEL_ROTATE "" OFF) option(NCNN_PIXEL_AFFINE "" OFF) + option(NCNN_PIXEL_DRAWING "" OFF) option(NCNN_VULKAN "" ON) option(NCNN_VULKAN_ONLINE_SPIRV "" ON) option(NCNN_BUILD_BENCHMARK "" OFF) @@ -102,6 +103,7 @@ if(NOT USE_SYSTEM_NCNN) option(NCNN_BUILD_EXAMPLES "" OFF) option(NCNN_DISABLE_RTTI "" ON) option(NCNN_DISABLE_EXCEPTION "" ON) + option(NCNN_INT8 "" OFF) option(WITH_LAYER_absval "" OFF) option(WITH_LAYER_argmax "" OFF) @@ -181,6 +183,9 @@ if(NOT USE_SYSTEM_NCNN) option(WITH_LAYER_groupnorm "" OFF) option(WITH_LAYER_layernorm "" OFF) option(WITH_LAYER_softplus "" OFF) + option(WITH_LAYER_gru "" OFF) + option(WITH_LAYER_multiheadattention "" OFF) + option(WITH_LAYER_gelu "" OFF) add_subdirectory(ncnn) endif()