Tencent / TNN

TNN: developed by Tencent Youtu Lab and Guangying Lab, a uniform deep learning inference framework for mobile、desktop and server. TNN is distinguished by several outstanding features, including its cross-platform capability, high performance, model compression and code pruning. Based on ncnn and Rapidnet, TNN further strengthens the support and performance optimization for mobile devices, and also draws on the advantages of good extensibility and high performance from existed open source efforts. TNN has been deployed in multiple Apps from Tencent, such as Mobile QQ, Weishi, Pitu, etc. Contributions are welcome to work in collaborative with us and make TNN a better framework.
Other
4.42k stars 771 forks source link

ONNX模型转TNN模型后在安卓端推理结果错误 #1140

Closed bestpower closed 3 years ago

bestpower commented 3 years ago

1. 环境(environment)

1、模型转换工具编译: 编译脚本路径 TNN/tools/onnx2tnn/onnx-converter/build.sh

2、模型转换 转换脚本路径及命令 python3 TNN/tools/convert2tnn/converter.py onnx2tnn $ONNX_MODEL_DIR/${onnx_model} -optimize -v v3.0 -o $OUTPUT_TNN_MODEL_DIR/

3、推理库编译 编译命令 export ANDROID_NDK=/home/wyu/SDK/NDK/android-ndk-r19c cd TNN/scripts rm -rf release ./build_android.sh cp -r release $OUTPUT_TNN_LID_DIR

4. 编译日志(build log)

1、转换工具编译日志
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- >>>>>>>>>>>>>
-- TNN BUILD INFO:
--  System: Linux
--  Processor: x86_64
--  Cpu:    ON
--  X86:    OFF
--  Arm:    OFF
--  Arm82:  OFF
--  Metal:  OFF
--  OpenCL: OFF
--  CUDA:   OFF
--  DSP:    OFF
--  Atlas:  OFF
--  TensorRT:   OFF
--  HuaweiNPU:  OFF
--  RKNPU:  OFF
--  OpenVINO:   OFF
--  OpenMP: OFF
--  TEST:   OFF
--  --Unit Test:    OFF
--  Quantization:   OFF
--  ModelCheck: OFF
--  DEBUG:  ON
--  PROFILE:    OFF
--  BENCHMARK:  OFF
--  BENCHMARK Layer:    OFF
--  Model Converter:    OFF
--  ONNX2TNN Converter: ON
--  TNN2MEM:    OFF
--  BENCHMARK Test Lib: OFF
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found Protobuf: /usr/local/lib/libprotobuf.so;-lpthread (found version "3.5.1") 
-- Found PythonInterp: /usr/bin/python3.6 (found version "3.6.9") 
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.6m.so
-- pybind11 v2.4.dev4
-- Configuring done
-- Generating done
-- Build files have been written to: /home/wyu/github_projects/TNN/tools/onnx2tnn/onnx-converter/build
Scanning dependencies of target TNNCpu
[  0%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/compute/compute_elewise.cc.o
[  1%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/compute/compute_int8.cc.o
[  1%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_abs_layer_acc.cc.o
[  1%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu__histogram_layer_acc.cc.o
[  1%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_acos_layer_acc.cc.o
[  1%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_add_layer_acc.cc.o
[  1%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_arg_max_or_min_layer_acc.cc.o
[  2%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_asin_layer_acc.cc.o
[  2%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_atan_layer_acc.cc.o
[  2%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_batch_norm_layer_acc.cc.o
[  2%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_bias_add_layer_acc.cc.o
[  2%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_binary_op_layer_acc.cc.o
[  2%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_bitshift_layer_acc.cc.o
[  3%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_cast_layer_acc.cc.o
[  3%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_ceil_layer_acc.cc.o
[  3%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_clip_layer_acc.cc.o
[  3%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_concat_layer_acc.cc.o
[  3%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_const_layer_acc.cc.o
[  3%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_constantofshape_layer_acc.cc.o
[  4%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_conv_1d_layer_acc.cc.o
[  4%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_conv_3d_layer_acc.cc.o
[  4%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_conv_layer_acc.cc.o
[  4%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_cos_layer_acc.cc.o
[  4%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_deconv_layer_acc.cc.o
[  4%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_detection_output_layer_acc.cc.o
[  5%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_detection_post_process_layer_acc.cc.o
[  5%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_div_layer_acc.cc.o
[  5%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_einsum_layer_acc.cc.o
[  5%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_elu_layer_acc.cc.o
[  5%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_equal_layer_acc.cc.o
[  5%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_erf_layer_acc.cc.o
[  6%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_exp_layer_acc.cc.o
[  6%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_expand_layer_acc.cc.o
[  6%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_flatten_layer_acc.cc.o
[  6%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_floor_layer_acc.cc.o
[  6%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_gather_layer_acc.cc.o
[  6%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_gathernd_layer_acc.cc.o
[  7%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_gelu_layer_acc.cc.o
[  7%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_gridsample_layer_acc.cc.o
[  7%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_group_norm_layer_acc.cc.o
[  7%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_hard_sigmoid_layer_acc.cc.o
[  7%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_hard_swish_layer_acc.cc.o
[  7%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_hdrguide_layer_acc.cc.o
[  8%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_inner_product_layer_acc.cc.o
[  8%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_instance_norm_layer_acc.cc.o
[  8%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_inverse_layer_acc.cc.o
[  8%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_layer_acc.cc.o
[  8%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_layer_norm_layer_acc.cc.o
[  8%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_log_layer_acc.cc.o
[  9%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_log_sigmoid_layer_acc.cc.o
[  9%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_lrn_layer_acc.cc.o
[  9%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_lstm_layer_acc.cc.o
[  9%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_mat_mul_layer_acc.cc.o
[  9%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_max_layer_acc.cc.o
[ 10%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_min_layer_acc.cc.o
[ 10%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_mul_layer_acc.cc.o
[ 10%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_neg_layer_acc.cc.o
[ 10%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_nonzero_layer_acc.cc.o
[ 10%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_normalize_layer_acc.cc.o
[ 10%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_onehot_layer_acc.cc.o
[ 11%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_pad_layer_acc.cc.o
[ 11%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_padv2_layer_acc.cc.o
[ 11%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_permute_layer_acc.cc.o
[ 11%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_pixel_shuffle_layer_acc.cc.o
[ 11%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_pool_3d_layer_acc.cc.o
[ 11%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_pool_layer_acc.cc.o
[ 12%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_pow_layer_acc.cc.o
[ 12%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_prelu_layer_acc.cc.o
[ 12%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_prior_box_layer_acc.cc.o
[ 12%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_range_layer_acc.cc.o
[ 12%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_reciprocal_layer_acc.cc.o
[ 12%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_reduce_l1_layer_acc.cc.o
[ 13%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_reduce_l2_layer_acc.cc.o
[ 13%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_reduce_layer_acc.cc.o
[ 13%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_reduce_log_sum_exp_layer_acc.cc.o
[ 13%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_reduce_log_sum_layer_acc.cc.o
[ 13%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_reduce_max_layer_acc.cc.o
[ 13%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_reduce_mean_layer_acc.cc.o
[ 14%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_reduce_min_layer_acc.cc.o
[ 14%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_reduce_prod_layer_acc.cc.o
[ 14%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_reduce_sum_layer_acc.cc.o
[ 14%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_reduce_sum_square_layer_acc.cc.o
[ 14%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_reformat_layer_acc.cc.o
[ 14%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_relu6_layer_acc.cc.o
[ 15%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_relu_layer_acc.cc.o
[ 15%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_reorg_layer_acc.cc.o
[ 15%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_reshape_layer_acc.cc.o
[ 15%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_roialign_layer_acc.cc.o
[ 15%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_rsqrt_layer_acc.cc.o
[ 15%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_scale_layer_acc.cc.o
[ 16%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_scatter_nd_layer_acc.cc.o
[ 16%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_selu_layer_acc.cc.o
[ 16%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_shape_layer_acc.cc.o
[ 16%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_shuffle_layer_acc.cc.o
[ 16%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_sigmoid_layer_acc.cc.o
[ 16%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_sign_layer_acc.cc.o
[ 17%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_signed_mul_layer_acc.cc.o
[ 17%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_sin_layer_acc.cc.o
[ 17%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_size_layer_acc.cc.o
[ 17%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_softmax_layer_acc.cc.o
[ 17%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_softplus_layer_acc.cc.o
[ 17%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_splitv_layer_acc.cc.o
[ 18%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_sqrt_layer_acc.cc.o
[ 18%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_squared_difference_layer_acc.cc.o
[ 18%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_squeeze_layer_acc.cc.o
[ 18%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_stride_slice_layer_acc.cc.o
[ 18%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_stride_slice_v2_layer_acc.cc.o
[ 18%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_sub_layer_acc.cc.o
[ 19%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_tan_layer_acc.cc.o
[ 19%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_tanh_layer_acc.cc.o
[ 19%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_tile_layer_acc.cc.o
[ 19%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_topk_layer_acc.cc.o
[ 19%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_unary_layer_acc.cc.o
[ 19%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_unsqueeze_layer_acc.cc.o
[ 20%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_upsample_layer_acc.cc.o
[ 20%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_where_layer_acc.cc.o
[ 20%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/cpu_blob_converter.cc.o
[ 20%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/cpu_context.cc.o
[ 20%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/cpu_device.cc.o
[ 20%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/cpu_mat_converter.cc.o
[ 21%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/cpu_mat_util.cc.o
[ 21%] Built target TNNCpu
Scanning dependencies of target TNN
[ 21%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/abstract_network.cc.o
[ 21%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/blob.cc.o
[ 21%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/abstract_device.cc.o
[ 21%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/abstract_layer_acc.cc.o
[ 21%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/blob_impl.cc.o
[ 22%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/blob_int8.cc.o
[ 22%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/blob_manager.cc.o
[ 22%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/const_folder.cc.o
[ 22%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/context.cc.o
[ 22%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/default_network.cc.o
[ 22%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/instance.cc.o
[ 23%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/layer_type.cc.o
[ 23%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/mat.cc.o
[ 23%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/profile.cc.o
[ 23%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/status.cc.o
[ 23%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/tnn.cc.o
[ 23%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/tnn_impl.cc.o
[ 24%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/tnn_impl_default.cc.o
[ 24%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/abs_layer.cc.o
[ 24%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/acos_layer.cc.o
[ 24%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/add_layer.cc.o
[ 24%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/arg_max_or_min_layer.cc.o
[ 24%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/asin_layer.cc.o
[ 25%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/atan_layer.cc.o
[ 25%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/base_layer.cc.o
[ 25%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/batch_norm_layer.cc.o
[ 25%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/bias_add_layer.cc.o
[ 25%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/bitshift_layer.cc.o
[ 25%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/cast_layer.cc.o
[ 26%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/cbam_fused_pooling_layer.cc.o
[ 26%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/cbam_fused_reduce_layer.cc.o
[ 26%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/ceil_layer.cc.o
[ 26%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/clip_layer.cc.o
[ 26%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/concat_layer.cc.o
[ 26%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/constantofshape_layer.cc.o
[ 27%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/conv1d_layer.cc.o
[ 27%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/conv3d_layer.cc.o
[ 27%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/conv_layer.cc.o
[ 27%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/cos_layer.cc.o
[ 27%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/deconv_layer.cc.o
[ 27%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/detection_output_layer.cc.o
[ 28%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/detection_post_process_layer.cc.o
[ 28%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/div_layer.cc.o
[ 28%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/einsum_layer.cc.o
[ 28%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/elementwise_layer.cc.o
[ 28%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/elu_layer.cc.o
[ 28%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/equal_layer.cc.o
[ 29%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/erf_layer.cc.o
[ 29%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/exp_layer.cc.o
[ 29%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/expand_layer.cc.o
[ 29%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/flatten_layer.cc.o
[ 29%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/floor_layer.cc.o
[ 29%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/gather_layer.cc.o
[ 30%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/gathernd_layer.cc.o
[ 30%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/gelu_layer.cc.o
[ 30%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/gridsample_layer.cc.o
[ 30%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/group_norm_layer.cc.o
[ 30%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/hard_sigmoid_layer.cc.o
[ 30%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/hard_swish_layer.cc.o
[ 31%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/hdrguide_layer.cc.o
[ 31%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/histogram_layer.cc.o
[ 31%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/inner_product_layer.cc.o
[ 31%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/instance_norm_layer.cc.o
[ 31%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/inverse_layer.cc.o
[ 31%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/layer_norm_layer.cc.o
[ 32%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/log_layer.cc.o
[ 32%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/log_sigmoid_layer.cc.o
[ 32%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/lrn_layer.cc.o
[ 32%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/lstm_layer.cc.o
[ 32%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/mat_mul_layer.cc.o
[ 32%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/max_layer.cc.o
[ 33%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/min_layer.cc.o
[ 33%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/mul_layer.cc.o
[ 33%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/multidir_broadcast_layer.cc.o
[ 33%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/neg_layer.cc.o
[ 33%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/nonzero_layer.cc.o
[ 34%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/normalize_layer.cc.o
[ 34%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/onehot_layer.cc.o
[ 34%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/pad_layer.cc.o
[ 34%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/padv2_layer.cc.o
[ 34%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/permute_layer.cc.o
[ 34%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/pixel_shuffle_layer.cc.o
[ 35%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/pooling_3d_layer.cc.o
[ 35%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/pooling_layer.cc.o
[ 35%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/pow_layer.cc.o
[ 35%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/prelu_layer.cc.o
[ 35%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/prior_box_layer.cc.o
[ 35%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/range_layer.cc.o
[ 36%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/reciprocal_layer.cc.o
[ 36%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/reduce_l1_layer.cc.o
[ 36%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/reduce_l2_layer.cc.o
[ 36%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/reduce_layer.cc.o
[ 36%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/reduce_log_sum_exp_layer.cc.o
[ 36%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/reduce_log_sum_layer.cc.o
[ 37%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/reduce_max_layer.cc.o
[ 37%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/reduce_mean_layer.cc.o
[ 37%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/reduce_min_layer.cc.o
[ 37%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/reduce_prod_layer.cc.o
[ 37%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/reduce_sum_layer.cc.o
[ 37%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/reduce_sum_square_layer.cc.o
[ 38%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/reformat_layer.cc.o
[ 38%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/relu6_layer.cc.o
[ 38%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/relu_layer.cc.o
[ 38%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/reorg_layer.cc.o
[ 38%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/reshape_layer.cc.o
[ 38%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/roi_pooling_layer.cc.o
[ 39%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/roialign_layer.cc.o
[ 39%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/rsqrt_layer.cc.o
[ 39%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/scale_layer.cc.o
[ 39%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/scatter_nd_layer.cc.o
[ 39%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/selu_layer.cc.o
[ 39%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/shape_layer.cc.o
[ 40%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/shuffle_layer.cc.o
[ 40%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/sigmoid_layer.cc.o
[ 40%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/sign_layer.cc.o
[ 40%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/signed_mul_layer.cc.o
[ 40%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/sin_layer.cc.o
[ 40%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/size_layer.cc.o
[ 41%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/softmax_layer.cc.o
[ 41%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/softplus_layer.cc.o
[ 41%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/softsign_layer.cc.o
[ 41%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/split_layer.cc.o
[ 41%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/splitv_layer.cc.o
[ 41%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/sqrt_layer.cc.o
[ 42%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/squared_difference_layer.cc.o
[ 42%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/squeeze_layer.cc.o
[ 42%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/stride_slice_layer.cc.o
[ 42%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/stride_slice_v2_layer.cc.o
[ 42%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/sub_layer.cc.o
[ 42%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/tan_layer.cc.o
[ 43%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/tanh_layer.cc.o
[ 43%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/tile_layer.cc.o
[ 43%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/topk_layer.cc.o
[ 43%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/unsqueeze_layer.cc.o
[ 43%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/upsample_layer.cc.o
[ 43%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/where_layer.cc.o
[ 44%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/bbox_util.cc.o
[ 44%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/bfp16_utils.cc.o
[ 44%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/blob_converter_default.cc.o
[ 44%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/blob_converter_internal.cc.o
[ 44%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/blob_dump_utils.cc.o
[ 44%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/blob_memory_size_utils.cc.o
[ 45%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/blob_transfer_utils.cc.o
[ 45%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/cpu_info.cc.o
[ 45%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/cpu_utils.cc.o
[ 45%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/data_flag_utils.cc.o
[ 45%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/data_format_converter.cc.o
[ 46%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/data_type_utils.cc.o
[ 46%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/detection_post_process_utils.cc.o
[ 46%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/dims_function_utils.cc.o
[ 46%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/dims_offset_utils.cc.o
[ 46%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/dims_vector_utils.cc.o
[ 46%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/half_utils.cc.o
[ 47%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/mat_converter_acc.cc.o
[ 47%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/mat_converter_utils.cc.o
[ 47%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/mat_utils.cc.o
[ 47%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/md5.cc.o
[ 47%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/naive_compute.cc.o
[ 47%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/npu_common_utils.cc.o
[ 48%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/pad_utils.cc.o
[ 48%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/pribox_generator_utils.cc.o
[ 48%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/random_data_utils.cc.o
[ 48%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/split_utils.cc.o
[ 48%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/string_format.cc.o
[ 48%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/string_utils.cc.o
[ 49%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/winograd_generator.cc.o
[ 49%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/abstract_model_interpreter.cc.o
[ 49%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/default_model_interpreter.cc.o
[ 49%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/default_model_packer.cc.o
[ 49%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/layer_resource_generator.cc.o
[ 49%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/batch_norm_layer_interpreter.cc.o
[ 50%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/binary_op_interpreter.cc.o
[ 50%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/clip_layer_interpreter.cc.o
[ 50%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/concat_layer_interpreter.cc.o
[ 50%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/conv_layer_interpreter.cc.o
[ 50%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/crop_layer_interpreter.cc.o
[ 50%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/deconv_layer_interpreter.cc.o
[ 51%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/default_layer_interpreter.cc.o
[ 51%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/detection_output_layer_interpreter.cc.o
[ 51%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/eltwise_layer_interpreter.cc.o
[ 51%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/elu_layer_interpreter.cc.o
[ 51%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/hard_sigmoid_layer_interpreter.cc.o
[ 51%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/hard_swish_layer_interpreter.cc.o
[ 52%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/inner_product_layer_interpreter.cc.o
[ 52%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/instance_norm_layer_interpreter.cc.o
[ 52%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/interp_layer_interpreter.cc.o
[ 52%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/lrn_layer_interpreter.cc.o
[ 52%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/memory_data_layer_interpreter.cc.o
[ 52%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/normalize_layer_interpreter.cc.o
[ 53%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/pad_layer_interpreter.cc.o
[ 53%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/permute_layer_interpreter.cc.o
[ 53%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/pooling_layer_interpreter.cc.o
[ 53%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/prelu_layer_interpreter.cc.o
[ 53%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/prior_box_layer_interpreter.cc.o
[ 53%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/reduce_op_layer_interpreter.cc.o
[ 54%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/relu_layer_interpreter.cc.o
[ 54%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/reorg_layer_interpreter.cc.o
[ 54%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/reshape_layer_interpreter.cc.o
[ 54%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/roi_pooling_layer_interpreter.cc.o
[ 54%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/scale_layer_interpreter.cc.o
[ 54%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/selu_layer_interpreter.cc.o
[ 55%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/shuffle_channel_layer_interpreter.cc.o
[ 55%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/slice_layer_interpreter.cc.o
[ 55%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/softmax_layer_interpreter.cc.o
[ 55%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/unary_op_layer_interpreter.cc.o
[ 55%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/ncnn_layer_type.cc.o
[ 55%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/ncnn_model_interpreter.cc.o
[ 56%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/ncnn_param_utils.cc.o
[ 56%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/optimizer/expand_slice_optimizer.cc.o
[ 56%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/optimizer/memory_data_optimizer.cc.o
[ 56%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/optimizer/ncnn_optimizer_manager.cc.o
[ 56%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/net_resource.cc.o
[ 56%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/net_structure.cc.o
[ 57%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/raw_buffer.cc.o
[ 57%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/add_layer_interpreter.cc.o
[ 57%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/arg_max_or_min_layer_interpreter.cc.o
[ 57%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/batch_norm_layer_interpreter.cc.o
[ 57%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/bias_add_layer_interpreter.cc.o
[ 57%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/bitshift_layer_interpreter.cc.o
[ 58%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/blob_scale_layer_interpreter.cc.o
[ 58%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/cast_layer_interpreter.cc.o
[ 58%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/clip_layer_interpreter.cc.o
[ 58%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/concat_layer_interpreter.cc.o
[ 58%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/const_layer_interpreter.cc.o
[ 59%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/constantofshape_layer_interpreter.cc.o
[ 59%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/conv_1d_layer_interpreter.cc.o
[ 59%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/conv_3d_layer_interpreter.cc.o
[ 59%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/conv_layer_interpreter.cc.o
[ 59%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/detection_output_interpreter.cc.o
[ 59%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/detection_post_process_layer_interpreter.cc.o
[ 60%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/div_layer_interpreter.cc.o
[ 60%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/einsum_layer_interpreter.cc.o
[ 60%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/elu_layer_interpreter.cc.o
[ 60%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/expand_layer_interpreter.cc.o
[ 60%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/flatten_layer_interpreter.cc.o
[ 60%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/gather_layer_interpreter.cc.o
[ 61%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/gathernd_layer_interpreter.cc.o
[ 61%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/gridsample_layer_interpreter.cc.o
[ 61%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/group_norm_layer_interpreter.cc.o
[ 61%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/hard_sigmoid_layer_interpreter.cc.o
[ 61%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/hard_swish_layer_interpreter.cc.o
[ 61%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/hdrguide_layer_interpreter.cc.o
[ 62%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/histogram_layer_interpreter.cc.o
[ 62%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/inner_product_layer_interpreter.cc.o
[ 62%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/instance_norm_layer_interpreter.cc.o
[ 62%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/layer_norm_layer_interpreter.cc.o
[ 62%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/lrn_layer_interpreter.cc.o
[ 62%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/lstm_layer_interpreter.cc.o
[ 63%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/mat_mul_layer_interpreter.cc.o
[ 63%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/max_layer_interpreter.cc.o
[ 63%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/min_layer_interpreter.cc.o
[ 63%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/mul_layer_interpreter.cc.o
[ 63%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/normalize_layer_interpreter.cc.o
[ 63%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/onehot_layer_interpreter.cc.o
[ 64%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/pad_layer_interpreter.cc.o
[ 64%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/padv2_layer_interpreter.cc.o
[ 64%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/permute_layer_interpreter.cc.o
[ 64%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/pixel_shuffle_layer_interpreter.cc.o
[ 64%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/pooling_3d_layer_interpreter.cc.o
[ 64%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/pooling_layer_interpreter.cc.o
[ 65%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/pow_layer_interpreter.cc.o
[ 65%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/prelu_layer_interpreter.cc.o
[ 65%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/prior_box_layer_interpreter.cc.o
[ 65%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/range_layer_interpreter.cc.o
[ 65%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/reduce_op_interpreter.cc.o
[ 65%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/reformat_layer_interpreter.cc.o
[ 66%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/reorg_layer_interpreter.cc.o
[ 66%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/reshape_layer_interpreter.cc.o
[ 66%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/roi_pooling_layer_interpreter.cc.o
[ 66%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/roialign_layer_interpreter.cc.o
[ 66%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/scale_layer_interpreter.cc.o
[ 66%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/scatter_nd_layer_interpreter.cc.o
[ 67%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/selu_layer_interpreter.cc.o
[ 67%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/shape_layer_interpreter.cc.o
[ 67%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/shuffle_layer_interpreter.cc.o
[ 67%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/signed_mul_layer_interpreter.cc.o
[ 67%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/size_layer_interpreter.cc.o
[ 67%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/softmax_layer_interpreter.cc.o
[ 68%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/splitv_layer_interpreter.cc.o
[ 68%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/squared_difference_layer_interpreter.cc.o
[ 68%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/squeeze_layer_interpreter.cc.o
[ 68%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/stride_slice_layer_interpreter.cc.o
[ 68%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/stride_slice_v2_layer_interpreter.cc.o
[ 68%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/sub_layer_interpreter.cc.o
[ 69%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/tile_layer_interpreter.cc.o
[ 69%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/topk_layer_interpreter.cc.o
[ 69%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/unary_op_layer_interpreter.cc.o
[ 69%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/unsqueeze_layer_interpreter.cc.o
[ 69%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/upsample_layer_interpreter.cc.o
[ 69%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/model_interpreter.cc.o
[ 70%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/model_packer.cc.o
[ 70%] Building CXX object CMakeFiles/TNN.dir/source/tnn/optimizer/net_optimizer_cbam_fused_pooling.cc.o
[ 70%] Building CXX object CMakeFiles/TNN.dir/source/tnn/optimizer/net_optimizer_cbam_fused_reduce.cc.o
[ 70%] Building CXX object CMakeFiles/TNN.dir/source/tnn/optimizer/net_optimizer_fuse_conv_add.cc.o
[ 70%] Building CXX object CMakeFiles/TNN.dir/source/tnn/optimizer/net_optimizer_fuse_conv_post.cc.o
[ 71%] Building CXX object CMakeFiles/TNN.dir/source/tnn/optimizer/net_optimizer_insert_fp16_reformat.cc.o
[ 71%] Building CXX object CMakeFiles/TNN.dir/source/tnn/optimizer/net_optimizer_insert_int8_reformat.cc.o
[ 71%] Building CXX object CMakeFiles/TNN.dir/source/tnn/optimizer/net_optimizer_insert_layout_reformat.cc.o
[ 71%] Building CXX object CMakeFiles/TNN.dir/source/tnn/optimizer/net_optimizer_manager.cc.o
[ 71%] Building CXX object CMakeFiles/TNN.dir/source/tnn/optimizer/net_optimizer_remove_layers.cc.o
[ 71%] Building CXX object CMakeFiles/TNN.dir/source/tnn/extern_wrapper/base_layer_builder.cc.o
[ 72%] Building CXX object CMakeFiles/TNN.dir/source/tnn/extern_wrapper/foreign_blob.cc.o
[ 72%] Building CXX object CMakeFiles/TNN.dir/source/tnn/memory_manager/blob_1d_memory.cc.o
[ 72%] Building CXX object CMakeFiles/TNN.dir/source/tnn/memory_manager/blob_1d_memory_pool.cc.o
[ 72%] Building CXX object CMakeFiles/TNN.dir/source/tnn/memory_manager/blob_2d_memory.cc.o
[ 72%] Building CXX object CMakeFiles/TNN.dir/source/tnn/memory_manager/blob_2d_memory_pool.cc.o
[ 72%] Building CXX object CMakeFiles/TNN.dir/source/tnn/memory_manager/blob_memory.cc.o
[ 73%] Building CXX object CMakeFiles/TNN.dir/source/tnn/memory_manager/blob_memory_pool.cc.o
[ 73%] Building CXX object CMakeFiles/TNN.dir/source/tnn/memory_manager/blob_memory_pool_factory.cc.o
[ 73%] Building CXX object CMakeFiles/TNN.dir/source/tnn/memory_manager/blob_memory_size_info.cc.o
[ 73%] Building CXX object CMakeFiles/TNN.dir/source/tnn/memory_manager/memory_mode_state.cc.o
[ 73%] Building CXX object CMakeFiles/TNN.dir/source/tnn/memory_manager/memory_mode_state_factory.cc.o
[ 73%] Building CXX object CMakeFiles/TNN.dir/source/tnn/memory_manager/memory_seperate_assign_strategy.cc.o
[ 74%] Building CXX object CMakeFiles/TNN.dir/source/tnn/memory_manager/memory_unify_assign_strategy.cc.o
[ 74%] Building CXX object CMakeFiles/TNN.dir/source/tnn/memory_manager/others_memory_mode_state.cc.o
[ 74%] Building CXX object CMakeFiles/TNN.dir/source/tnn/memory_manager/share_one_thread_memory_mode_state.cc.o
[ 74%] Building CXX object CMakeFiles/TNN.dir/source/tnn/memory_manager/shared_memory_manager.cc.o
[ 74%] Linking CXX static library libTNN.a
[ 74%] Built target TNN
[ 74%] Running C++ protocol buffer compiler on /home/wyu/github_projects/TNN/tools/converter/source/onnx//onnx-proto/onnx.proto
Scanning dependencies of target onnx2tnn
[ 74%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/onnx2tnn_convert.cc.o
[ 74%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter__histogram.cc.o
[ 74%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_abs.cc.o
[ 75%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_acos.cc.o
[ 75%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_adaptive_pool.cc.o
[ 75%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_add.cc.o
[ 75%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_arg_max_or_min.cc.o
[ 75%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_asin.cc.o
[ 75%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_atan.cc.o
[ 76%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_batchnorm.cc.o
[ 76%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_bitshift.cc.o
[ 76%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_cast.cc.o
[ 76%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_ceil.cc.o
[ 76%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_clip.cc.o
[ 76%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_concat.cc.o
[ 77%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_const.cc.o
[ 77%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_constantofshape.cc.o
[ 77%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_convolution.cc.o
[ 77%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_cos.cc.o
[ 77%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_depthtospace.cc.o
[ 77%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_detection_output.cc.o
[ 78%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_div.cc.o
[ 78%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_dropout.cc.o
[ 78%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_einsum.cc.o
[ 78%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_elu.cc.o
[ 78%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_equal.cc.o
[ 78%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_erf.cc.o
[ 79%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_exp.cc.o
[ 79%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_expand.cc.o
[ 79%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_flatten.cc.o
[ 79%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_floor.cc.o
[ 79%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_gather.cc.o
[ 79%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_gathernd.cc.o
[ 80%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_gelu.cc.o
[ 80%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_gemm.cc.o
[ 80%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_gridsample.cc.o
[ 80%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_group_norm.cc.o
[ 80%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_hard_sigmoid.cc.o
[ 80%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_hard_swish.cc.o
[ 81%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_hdrguide.cc.o
[ 81%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_instance_norm.cc.o
[ 81%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_inverse.cc.o
[ 81%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_layer_norm.cc.o
[ 81%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_leakyrelu.cc.o
[ 81%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_log.cc.o
[ 82%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_logsigmoid.cc.o
[ 82%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_lp_normalization.cc.o
[ 82%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_lrn.cc.o
[ 82%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_lstm.cc.o
[ 82%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_matmul.cc.o
[ 82%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_max.cc.o
[ 83%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_min.cc.o
[ 83%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_mul.cc.o
[ 83%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_multidir_broadcast.cc.o
[ 83%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_neg.cc.o
[ 83%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_nonzero.cc.o
[ 83%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_normalize.cc.o
[ 84%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_not.cc.o
[ 84%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_onehot.cc.o
[ 84%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_pad.cc.o
[ 84%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_pixel_shuffle.cc.o
[ 84%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_pool.cc.o
[ 84%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_pow.cc.o
[ 85%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_prelu.cc.o
[ 85%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_prior_box.cc.o
[ 85%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_range.cc.o
[ 85%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_reciprocal.cc.o
[ 85%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_reduce.cc.o
[ 85%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_relu.cc.o
[ 86%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_reshape.cc.o
[ 86%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_resize.cc.o
[ 86%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_roialign.cc.o
[ 86%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_scatter_nd.cc.o
[ 86%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_selu.cc.o
[ 86%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_shape.cc.o
[ 87%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_shuffle_channel.cc.o
[ 87%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_sigmoid.cc.o
[ 87%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_sign.cc.o
[ 87%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_signed_mul.cc.o
[ 87%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_sin.cc.o
[ 88%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_size.cc.o
[ 88%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_slice.cc.o
[ 88%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_softmax.cc.o
[ 88%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_softplus.cc.o
[ 88%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_softsign.cc.o
[ 88%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_split.cc.o
[ 89%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_sqrt.cc.o
[ 89%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_squeeze.cc.o
[ 89%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_sub.cc.o
[ 89%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_tan.cc.o
[ 89%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_tanh.cc.o
[ 89%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_tile.cc.o
[ 90%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_topk.cc.o
[ 90%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_transpose.cc.o
[ 90%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_unsqueeze.cc.o
[ 90%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_upsample.cc.o
[ 90%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_converter_where.cc.o
[ 90%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/layer/onnx_op_converter.cc.o
[ 91%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx2tnn.cc.o
[ 91%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx2tnn_model.cc.o
[ 91%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_fuse_arg_max_or_min.cc.o
[ 91%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_fuse_batchnorm.cc.o
[ 91%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_fuse_conv.cc.o
[ 91%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_fuse_deconv.cc.o
[ 92%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_fuse_depth_to_space.cc.o
[ 92%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_fuse_flatten.cc.o
[ 92%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_fuse_gelu.cc.o
[ 92%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_fuse_gemm.cc.o
[ 92%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_fuse_global_average_pool.cc.o
[ 92%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_fuse_group_normalization.cc.o
[ 93%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_fuse_hard_sigmoid.cc.o
[ 93%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_fuse_hard_swish.cc.o
[ 93%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_fuse_hdr_guide.cc.o
[ 93%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_fuse_histogram.cc.o
[ 93%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_fuse_instance_normalization.cc.o
[ 93%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_fuse_layer_normalization.cc.o
[ 94%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_fuse_logsigmoid.cc.o
[ 94%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_fuse_lstm.cc.o
[ 94%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_fuse_matmul.cc.o
[ 94%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_fuse_normalize.cc.o
[ 94%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_fuse_pooling.cc.o
[ 94%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_fuse_prelu.cc.o
[ 95%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_fuse_relu6.cc.o
[ 95%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_fuse_shuffle_channel.cc.o
[ 95%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_fuse_signed_mul.cc.o
[ 95%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_fuse_softmax.cc.o
[ 95%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_fuse_spacetodepth.cc.o
[ 95%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_fuse_transpose.cc.o
[ 96%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_transfer_global_max_pool.cc.o
[ 96%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_transfer_gridsample.cc.o
[ 96%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_transfer_group_normalization.cc.o
[ 96%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_transfer_input_name.cc.o
[ 96%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_transfer_inverse.cc.o
[ 96%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_fuse/onnx2tnn_transfer_reduce_max.cc.o
[ 97%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_process_tf/onnx2tnn_remove_transpose.cc.o
[ 97%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_process_tf/onnx2tnn_transfer_concat.cc.o
[ 97%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_process_tf/onnx2tnn_transfer_split.cc.o
[ 97%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_remove/onnx2tnn_remove_concat.cc.o
[ 97%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_remove/onnx2tnn_remove_dropout.cc.o
[ 97%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_remove/onnx2tnn_remove_expand.cc.o
[ 98%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_remove/onnx2tnn_remove_identity.cc.o
[ 98%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_remove/onnx2tnn_remove_image_scaler.cc.o
[ 98%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_remove/onnx2tnn_remove_pad.cc.o
[ 98%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_remove/onnx2tnn_remove_pool.cc.o
[ 98%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_remove/onnx2tnn_remove_reshape.cc.o
[ 98%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_remove/onnx2tnn_remove_reshape_where.cc.o
[ 99%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_remove/onnx2tnn_remove_split_unsqueeze_concat.cc.o
[ 99%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_remove/onnx2tnn_remove_squeeze.cc.o
[ 99%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_remove/onnx2tnn_remove_unsqueeze.cc.o
[ 99%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/__/src/core/onnx_utility.cc.o
[ 99%] Building CXX object tools/onnx2tnn/onnx-converter/CMakeFiles/onnx2tnn.dir/onnx.pb.cc.o
[100%] Linking CXX shared module onnx2tnn.cpython-36m-x86_64-linux-gnu.so
[100%] Built target onnx2tnn
/home/wyu/github_projects/TNN/tools/onnx2tnn/onnx-converter/build
Compiled onnx2tnn successfully !

2、转换日志
----------  convert model, please wait a moment ----------

Converter ONNX to TNN Model...

Converter ONNX to TNN check_onnx_dim...

Converter ONNX to TNN check_onnx_dim...

Converter ONNX to TNN model succeed!

3、推理库编译日志
******************** step 1: update version.h ********************
/home/wyu/github_projects/TNN/scripts/version
Target: tnn
Commit Branch: hotfix_issue_1109
Commit Date: 2021-07-07
Commit Hash: ebc079cf

******************** step 2: start build rpn arm32 ********************
remove build32
armeabi-v7a
-- android-14 is unsupported. Using minimum supported version 16.
-- Check for working C compiler: /home/wyu/SDK/NDK/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
-- Check for working C compiler: /home/wyu/SDK/NDK/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/wyu/SDK/NDK/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++
-- Check for working CXX compiler: /home/wyu/SDK/NDK/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The ASM compiler identification is Clang
-- Found assembler: /home/wyu/SDK/NDK/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
-- Found OpenMP_C: -fopenmp=libomp (found version "3.1") 
-- Found OpenMP_CXX: -fopenmp=libomp (found version "3.1") 
-- Found OpenMP: TRUE (found version "3.1")  
-- >>>>>>>>>>>>>
-- TNN BUILD INFO:
--  System: Android
--  Processor: armv7-a
--  Cpu:    ON
--  X86:    OFF
--  Arm:    ON
--  Arm82:  OFF
--  Metal:  OFF
--  OpenCL: ON
--  CUDA:   OFF
--  DSP:    OFF
--  Atlas:  OFF
--  TensorRT:   OFF
--  HuaweiNPU:  OFF
--  RKNPU:  OFF
--  OpenVINO:   OFF
--  OpenMP: ON
--  TEST:   ON
--  --Unit Test:    OFF
--  Quantization:   OFF
--  ModelCheck: OFF
--  DEBUG:  OFF
--  PROFILE:    OFF
--  BENCHMARK:  OFF
--  BENCHMARK Layer:    OFF
--  Model Converter:    OFF
--  ONNX2TNN Converter: OFF
--  TNN2MEM:    OFF
--  BENCHMARK Test Lib: OFF
-- Found PythonInterp: /usr/bin/python (found version "3.6.9") 
Generate OpenCL Source done !!! 

-- Build TNN OpenCL
-- Looking for C++ include unistd.h
-- Looking for C++ include unistd.h - found
-- Looking for C++ include stdint.h
-- Looking for C++ include stdint.h - found
-- Looking for C++ include inttypes.h
-- Looking for C++ include inttypes.h - found
-- Looking for C++ include sys/types.h
-- Looking for C++ include sys/types.h - found
-- Looking for C++ include sys/stat.h
-- Looking for C++ include sys/stat.h - found
-- Looking for C++ include fnmatch.h
-- Looking for C++ include fnmatch.h - found
-- Looking for C++ include stddef.h
-- Looking for C++ include stddef.h - found
-- Check size of uint32_t
-- Check size of uint32_t - done
-- Looking for strtoll
-- Looking for strtoll - found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/wyu/github_projects/TNN/scripts/build32
Scanning dependencies of target gflags_nothreads_static
[  0%] Building CXX object third_party/gflags/CMakeFiles/gflags_nothreads_static.dir/src/gflags.cc.o
[  0%] Building CXX object third_party/gflags/CMakeFiles/gflags_nothreads_static.dir/src/gflags_reporting.cc.o
[  0%] Building CXX object third_party/gflags/CMakeFiles/gflags_nothreads_static.dir/src/gflags_completions.cc.o
Scanning dependencies of target TNNCpu
[  0%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/compute/compute_int8.cc.o
[  0%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/compute/compute_elewise.cc.o
[  0%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu__histogram_layer_acc.cc.o
Scanning dependencies of target TNNOpenCL
[  0%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/convolution/opencl_conv_layer_1x1_acc.cc.o
Scanning dependencies of target TNNArm
[  0%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_abs_layer_acc.cc.o
[  1%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_add_layer_acc.cc.o
[  1%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_arg_max_or_min_layer_acc.cc.o
[  1%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_batch_norm_layer_acc.cc.o
[  2%] Linking CXX static library libgflags_nothreads.a
[  2%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_binary_layer_acc.cc.o
[  2%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_abs_layer_acc.cc.o
[  2%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_cast_layer_acc.cc.o
[  2%] Built target gflags_nothreads_static
[  2%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_clip_layer_acc.cc.o
[  2%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/convolution/opencl_conv_layer_acc.cc.o
[  2%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_concat_layer_acc.cc.o
[  3%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_detection_output_layer_acc.cc.o
[  3%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_div_layer_acc.cc.o
[  3%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_acos_layer_acc.cc.o
[  3%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_elu_layer_acc.cc.o
[  3%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_exp_layer_acc.cc.o
[  3%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/convolution/opencl_conv_layer_acc_impl.cc.o
[  3%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_expand_layer_acc.cc.o
[  3%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/convolution/opencl_conv_layer_common_acc.cc.o
[  4%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_add_layer_acc.cc.o
[  4%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_floor_layer_acc.cc.o
[  5%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_gather_layer_acc.cc.o
[  5%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_grid_sample_layer_acc.cc.o
[  5%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_hard_sigmoid_acc.cc.o
[  5%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_hard_swish_acc.cc.o
[  5%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_arg_max_or_min_layer_acc.cc.o
[  6%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/convolution/opencl_conv_layer_depthwise_acc.cc.o
[  6%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_inner_product_layer_acc.cc.o
[  6%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_instance_norm_layer_acc.cc.o
[  6%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/convolution/opencl_conv_layer_winograd_acc.cc.o
[  6%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_inverse_layer_acc.cc.o
[  7%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_layer_acc.cc.o
[  7%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_asin_layer_acc.cc.o
[  7%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_log_acc_layer_acc.cc.o
[  7%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_log_sigmoid_layer_acc.cc.o
[  7%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/deconvolution/opencl_deconv_layer_acc.cc.o
[  7%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_lstm_layer_acc.cc.o
[  7%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_mat_mul_layer_acc.cc.o
[  7%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/deconvolution/opencl_deconv_layer_acc_impl.cc.o
[  7%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_max_layer_acc.cc.o
[  7%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_atan_layer_acc.cc.o
[  7%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_min_layer_acc.cc.o
[  8%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_mul_layer_acc.cc.o
[  8%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/deconvolution/opencl_deconv_layer_common_acc.cc.o
[  8%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/deconvolution/opencl_deconv_layer_depthwise_acc.cc.o
[  8%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_nchw_layer_acc.cc.o
[  8%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_batch_norm_layer_acc.cc.o
[  8%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_neg_layer_acc.cc.o
[  8%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_abs_layer_acc.cc.o
[  8%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_normalize_layer_acc.cc.o
[  8%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_pad_layer_acc.cc.o
[  8%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_padv2_layer_acc.cc.o
[  8%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_bias_add_layer_acc.cc.o
[  9%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_acos_layer_acc.cc.o
[  9%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_add_layer_acc.cc.o
[ 10%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_permute_layer_acc.cc.o
[ 10%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_arg_max_or_min_layer_acc.cc.o
[ 10%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_asin_layer_acc.cc.o
[ 10%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_pixel_shuffle_layer_acc.cc.o
[ 10%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_binary_op_layer_acc.cc.o
[ 10%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_pool_layer_acc.cc.o
[ 10%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_atan_layer_acc.cc.o
[ 10%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_pow_layer_acc.cc.o
[ 10%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_batch_norm_layer_acc.cc.o
[ 11%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_bitshift_layer_acc.cc.o
[ 11%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_cast_layer_acc.cc.o
[ 11%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_ceil_layer_acc.cc.o
[ 11%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_prelu_layer_acc.cc.o
[ 12%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_binary_layer_acc.cc.o
[ 12%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_priorbox_layer_acc.cc.o
[ 12%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_cast_layer_acc.cc.o
[ 12%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_clip_layer_acc.cc.o
[ 12%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_ceil_layer_acc.cc.o
[ 12%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_clip_layer_acc.cc.o
[ 12%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_concat_layer_acc.cc.o
[ 12%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_const_layer_acc.cc.o
[ 12%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_reciprocal_layer_acc.cc.o
[ 13%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_constantofshape_layer_acc.cc.o
[ 13%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_concat_layer_acc.cc.o
[ 13%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_conv_1d_layer_acc.cc.o
[ 13%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_cos_layer_acc.cc.o
[ 14%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_reduce_l1_layer_acc.cc.o
[ 14%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_reduce_l2_layer_acc.cc.o
[ 14%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_conv_3d_layer_acc.cc.o
[ 14%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_conv_layer_acc.cc.o
[ 14%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_reduce_layer_acc.cc.o
[ 14%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_cos_layer_acc.cc.o
[ 14%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_deconv_layer_acc.cc.o
[ 14%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_reduce_log_sum_exp_layer_acc.cc.o
[ 14%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_reduce_log_sum_layer_acc.cc.o
[ 14%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_cpu_adapter_acc.cc.o
[ 15%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_div_layer_acc.cc.o
[ 15%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_detection_output_layer_acc.cc.o
[ 16%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_detection_post_process_layer_acc.cc.o
[ 16%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_reduce_max_layer_acc.cc.o
[ 16%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_div_layer_acc.cc.o
[ 16%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_reduce_mean_layer_acc.cc.o
[ 17%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_reduce_min_layer_acc.cc.o
[ 17%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_einsum_layer_acc.cc.o
[ 17%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_elu_layer_acc.cc.o
[ 17%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_exp_layer_acc.cc.o
[ 17%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_elu_layer_acc.cc.o
[ 17%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_reduce_prod_layer_acc.cc.o
[ 17%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_equal_layer_acc.cc.o
[ 17%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_reduce_sum_layer_acc.cc.o
[ 17%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_reduce_sum_square_layer_acc.cc.o
[ 17%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_erf_layer_acc.cc.o
[ 17%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_exp_layer_acc.cc.o
[ 17%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_expand_layer_acc.cc.o
[ 17%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_reformat_layer_acc.cc.o
[ 17%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_floor_layer_acc.cc.o
[ 18%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_expand_layer_acc.cc.o
[ 18%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_relu6_layer_acc.cc.o
[ 18%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_flatten_layer_acc.cc.o
[ 19%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_relu_layer_acc.cc.o
[ 19%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_floor_layer_acc.cc.o
[ 19%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_gather_layer_acc.cc.o
[ 19%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_reorg_layer_acc.cc.o
[ 19%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_gathernd_layer_acc.cc.o
[ 19%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_gather_layer_acc.cc.o
[ 19%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_gelu_layer_acc.cc.o
[ 19%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_reshape_layer_acc.cc.o
[ 19%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_scale_layer_acc.cc.o
[ 19%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_gridsample_layer_acc.cc.o
[ 20%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_gridsample_layer_acc.cc.o
[ 20%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_selu_layer_acc.cc.o
[ 20%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_group_norm_layer_acc.cc.o
[ 20%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_hard_sigmoid_layer_acc.cc.o
[ 20%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_shuffle_layer_acc.cc.o
[ 20%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_sigmoid_layer_acc.cc.o
[ 20%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_hard_swish_layer_acc.cc.o
[ 21%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_hard_sigmoid_layer_acc.cc.o
[ 21%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_hard_swish_layer_acc.cc.o
[ 21%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_hdrguide_layer_acc.cc.o
[ 21%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_inner_product_layer_acc.cc.o
[ 22%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_sign_layer_acc.cc.o
[ 22%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_signed_mul_layer_acc.cc.o
[ 22%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_softmax_layer_acc.cc.o
[ 22%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_hdr_guide_layer_acc.cc.o
[ 22%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_instance_norm_layer_acc.cc.o
[ 23%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_inverse_layer_acc.cc.o
[ 23%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_inner_product_layer_acc.cc.o
[ 23%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_instance_norm_layer_acc.cc.o
[ 23%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_softplus_layer_acc.cc.o
[ 23%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_splitv_layer_acc.cc.o
[ 23%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_sqrt_layer_acc.cc.o
[ 23%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_layer_acc.cc.o
[ 23%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_layer_norm_layer_acc.cc.o
[ 23%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_inverse_layer_acc.cc.o
[ 23%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_squeeze_layer_acc.cc.o
[ 24%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_layer_acc.cc.o
[ 24%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_log_layer_acc.cc.o
[ 24%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_log_layer_acc.cc.o
[ 25%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_stride_slice_layer_acc.cc.o
[ 25%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_log_sigmoid_layer_acc.cc.o
[ 25%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_lrn_layer_acc.cc.o
[ 25%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_logsigmoid_layer_acc.cc.o
[ 25%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_sub_layer_acc.cc.o
[ 25%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_lstm_layer_acc.cc.o
[ 26%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_mat_mul_layer_acc.cc.o
[ 26%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_max_layer_acc.cc.o
[ 26%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_tile_layer_acc.cc.o
[ 26%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_lstm_layer_acc.cc.o
[ 26%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_mat_mul_layer_acc.cc.o
[ 26%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_trig_layer_acc.cc.o
[ 26%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_min_layer_acc.cc.o
[ 26%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_max_layer_acc.cc.o
[ 26%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_mul_layer_acc.cc.o
[ 26%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_neg_layer_acc.cc.o
[ 26%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_unary_layer_acc.cc.o
[ 26%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_nonzero_layer_acc.cc.o
[ 27%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_normalize_layer_acc.cc.o
[ 27%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_onehot_layer_acc.cc.o
[ 27%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_min_layer_acc.cc.o
[ 28%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_mul_layer_acc.cc.o
[ 28%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_neg_layer_acc.cc.o
[ 28%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_normalize_layer_acc.cc.o
[ 28%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_unsqueeze_layer_acc.cc.o
[ 28%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_pad_layer_acc.cc.o
[ 28%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_padv2_layer_acc.cc.o
[ 28%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_permute_layer_acc.cc.o
[ 28%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_pad_layer_acc.cc.o
[ 29%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/arm_upsample_layer_acc.cc.o
[ 29%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_padv2_layer_acc.cc.o
[ 29%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_permute_layer_acc.cc.o
[ 29%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_pixel_shuffle_layer_acc.cc.o
[ 29%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_pixel_shuffle_layer_acc.cc.o
[ 29%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_pool_3d_layer_acc.cc.o
[ 30%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_pool_layer_acc.cc.o
[ 30%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_pow_layer_acc.cc.o
[ 31%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_pooling_layer_acc.cc.o
[ 31%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/compute/binary_function.cc.o
[ 31%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/compute/compute.cc.o
[ 31%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_prelu_layer_acc.cc.o
[ 31%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_pow_layer_acc.cc.o
[ 31%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_prelu_layer_acc.cc.o
[ 31%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_prior_box_layer_acc.cc.o
[ 31%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_prior_box_layer_acc.cc.o
[ 31%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_range_layer_acc.cc.o
[ 31%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/compute/compute_int8.cc.o
[ 31%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/compute/gemm_function.cc.o
[ 31%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_reciprocal_layer_acc.cc.o
[ 31%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_reduce_l1_layer_acc.cc.o
[ 32%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_reduce_l2_layer_acc.cc.o
[ 32%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/compute/winograd_function.cc.o
[ 32%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_reduce_layer_acc.cc.o
[ 32%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_reciprocal_layer_acc.cc.o
[ 32%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_reduce_l1_layer_acc.cc.o
[ 32%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/convolution/arm_conv_int8_layer_1x1.cc.o
[ 33%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/convolution/arm_conv_int8_layer_common.cc.o
[ 34%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_reduce_l2_layer_acc.cc.o
[ 34%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_reduce_log_sum_exp_layer_acc.cc.o
[ 34%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_reduce_log_sum_layer_acc.cc.o
[ 34%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_reduce_layer_acc.cc.o
[ 34%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_reduce_max_layer_acc.cc.o
[ 34%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_reduce_mean_layer_acc.cc.o
[ 34%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/convolution/arm_conv_int8_layer_depthwise.cc.o
[ 34%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_reduce_log_sum_exp_layer_acc.cc.o
[ 34%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_reduce_log_sum_layer_acc.cc.o
[ 34%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_reduce_max_layer_acc.cc.o
[ 34%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_reduce_min_layer_acc.cc.o
[ 35%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_reduce_prod_layer_acc.cc.o
[ 35%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/convolution/arm_conv_layer_1x1.cc.o
[ 35%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_reduce_sum_layer_acc.cc.o
[ 35%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_reduce_mean_layer_acc.cc.o
[ 35%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_reduce_sum_square_layer_acc.cc.o
[ 36%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_reduce_min_layer_acc.cc.o
[ 36%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_reduce_prod_layer_acc.cc.o
[ 36%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_reduce_sum_layer_acc.cc.o
[ 36%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/convolution/arm_conv_layer_3x3.cc.o
[ 36%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_reduce_sum_square_layer_acc.cc.o
[ 36%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_reformat_layer_acc.cc.o
[ 36%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_relu6_layer_acc.cc.o
[ 36%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_relu_layer_acc.cc.o
[ 36%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_reorg_layer_acc.cc.o
[ 36%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_reformat_layer_acc.cc.o
[ 36%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_relu6_layer_acc.cc.o
[ 36%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_relu_layer_acc.cc.o
[ 36%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/convolution/arm_conv_layer_acc.cc.o
[ 37%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_reorg_layer_acc.cc.o
[ 38%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_reshape_layer_acc.cc.o
[ 38%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_selu_layer_acc.cc.o
[ 38%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_shuffle_layer_acc.cc.o
[ 38%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_reshape_layer_acc.cc.o
[ 38%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_sigmoid_layer_acc.cc.o
[ 38%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_roialign_layer_acc.cc.o
[ 38%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_rsqrt_layer_acc.cc.o
[ 38%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/convolution/arm_conv_layer_acc_factory.cc.o
[ 38%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_scale_layer_acc.cc.o
[ 38%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_scatter_nd_layer_acc.cc.o
[ 38%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_sign_layer_acc.cc.o
[ 38%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_signed_mul_layer_acc.cc.o
[ 38%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/convolution/arm_conv_layer_c3.cc.o
[ 39%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/convolution/arm_conv_layer_common.cc.o
[ 39%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/convolution/arm_conv_layer_depthwise.cc.o
[ 39%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/convolution/arm_conv_layer_depthwise_s1.cc.o
[ 39%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_selu_layer_acc.cc.o
[ 40%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_shape_layer_acc.cc.o
[ 40%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/convolution/arm_conv_layer_group.cc.o
[ 41%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_sin_layer_acc.cc.o
[ 41%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_softmax_layer_acc.cc.o
[ 41%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/deconvolution/arm_deconv_layer_acc.cc.o
[ 41%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/deconvolution/arm_deconv_layer_common.cc.o
[ 42%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/deconvolution/arm_deconv_layer_depthwise.cc.o
[ 42%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_shuffle_layer_acc.cc.o
[ 42%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_sigmoid_layer_acc.cc.o
[ 42%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/deconvolution/arm_deconv_layer_stride.cc.o
[ 42%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/arm_blob_converter.cc.o
[ 42%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_sign_layer_acc.cc.o
[ 42%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/arm_context.cc.o
[ 42%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/arm_device.cc.o
[ 42%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_softplus_layer_acc.cc.o
[ 42%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_signed_mul_layer_acc.cc.o
[ 42%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_split_layer_acc.cc.o
[ 42%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/arm_mat_converter.cc.o
[ 42%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_sin_layer_acc.cc.o
[ 42%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/arm_mat_util.cc.o
[ 43%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_size_layer_acc.cc.o
[ 44%] Building CXX object source/tnn/device/arm/CMakeFiles/TNNArm.dir/arm_util.cc.o
[ 44%] Building ASM object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/compute/arm32/CONV_BFP16_O4.S.o
[ 44%] Building ASM object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/compute/arm32/CONV_BFP16_SLIDEW_C3.S.o
[ 44%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_splitv_layer_acc.cc.o
[ 44%] Building ASM object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/compute/arm32/CONV_DW_3X3_BFP16_SLIDEW.S.o
[ 44%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_sqrt_layer_acc.cc.o
[ 44%] Building ASM object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/compute/arm32/CONV_DW_3X3_FLOAT_SLIDEW.S.o
[ 44%] Building ASM object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/compute/arm32/CONV_DW_3X3_INT8_SLIDEW.S.o
[ 44%] Building ASM object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/compute/arm32/CONV_DW_5X5_BFP16_SLIDEW.S.o
[ 45%] Building ASM object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/compute/arm32/CONV_DW_5X5_FLOAT_SLIDEW.S.o
[ 45%] Building ASM object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/compute/arm32/CONV_FLOAT_SLIDEW_C3.S.o
[ 45%] Building ASM object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/compute/arm32/CONV_FLOAT_O4.S.o
[ 45%] Building ASM object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/compute/arm32/DECONV_FLOAT_O4.S.o
[ 45%] Building ASM object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/compute/arm32/GEMM_BFP16_N4.S.o
[ 45%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_softmax_layer_acc.cc.o
[ 45%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_softplus_layer_acc.cc.o
[ 45%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_splitv_layer_acc.cc.o
[ 45%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_sqrt_layer_acc.cc.o
[ 45%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_squared_difference_layer_acc.cc.o
[ 45%] Building ASM object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/compute/arm32/GEMM_FLOAT_N4.S.o
[ 46%] Building ASM object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/compute/arm32/GEMM_INT8_4X4.S.o
[ 46%] Building ASM object source/tnn/device/arm/CMakeFiles/TNNArm.dir/acc/compute/arm32/GEMM_INT8_4X8.S.o
[ 46%] Built target TNNArm
[ 46%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_squeeze_layer_acc.cc.o
[ 47%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_stride_slice_layer_acc.cc.o
[ 47%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_stride_slice_v2_layer_acc.cc.o
[ 47%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_squeeze_layer_acc.cc.o
[ 47%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_sub_layer_acc.cc.o
[ 48%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_stride_slice_layer_acc.cc.o
[ 48%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_tan_layer_acc.cc.o
[ 48%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_tanh_layer_acc.cc.o
[ 48%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_tile_layer_acc.cc.o
[ 48%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_topk_layer_acc.cc.o
[ 49%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_unary_layer_acc.cc.o
[ 49%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_unsqueeze_layer_acc.cc.o
[ 49%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_upsample_layer_acc.cc.o
[ 49%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/acc/cpu_where_layer_acc.cc.o
[ 49%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_stride_slice_v2_layer_acc.cc.o
[ 49%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/cpu_blob_converter.cc.o
[ 49%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_sub_layer_acc.cc.o
[ 49%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/cpu_context.cc.o
[ 50%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/cpu_device.cc.o
[ 50%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/cpu_mat_converter.cc.o
[ 50%] Building CXX object source/tnn/device/cpu/CMakeFiles/TNNCpu.dir/cpu_mat_util.cc.o
[ 50%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_tan_layer_acc.cc.o
[ 50%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_tanh_layer_acc.cc.o
[ 50%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_tile_layer_acc.cc.o
[ 50%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_unary_layer_acc.cc.o
[ 51%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/acc/opencl_upsample_layer_acc.cc.o
[ 51%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/cl/opencl_program.cc.o
[ 51%] Built target TNNCpu
[ 51%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/imagebuffer_convertor.cc.o
[ 51%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/opencl_blob_converter.cc.o
[ 51%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/opencl_context.cc.o
[ 51%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/opencl_device.cc.o
[ 52%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/opencl_mat_converter.cc.o
[ 52%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/opencl_memory.cc.o
[ 52%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/opencl_runtime.cc.o
[ 52%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/opencl_utils.cc.o
[ 52%] Building CXX object source/tnn/device/opencl/CMakeFiles/TNNOpenCL.dir/opencl_wrapper.cc.o
[ 52%] Built target TNNOpenCL
Scanning dependencies of target TNN
[ 52%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/abstract_device.cc.o
[ 52%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/abstract_layer_acc.cc.o
[ 52%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/blob_impl.cc.o
[ 52%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/blob_int8.cc.o
[ 52%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/const_folder.cc.o
[ 52%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/blob.cc.o
[ 52%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/abstract_network.cc.o
[ 53%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/blob_manager.cc.o
[ 53%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/context.cc.o
[ 53%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/default_network.cc.o
[ 53%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/instance.cc.o
[ 53%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/layer_type.cc.o
[ 53%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/mat.cc.o
[ 54%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/profile.cc.o
[ 54%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/status.cc.o
[ 54%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/tnn.cc.o
[ 54%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/tnn_impl.cc.o
[ 54%] Building CXX object CMakeFiles/TNN.dir/source/tnn/core/tnn_impl_default.cc.o
[ 54%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/abs_layer.cc.o
[ 55%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/acos_layer.cc.o
[ 55%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/add_layer.cc.o
[ 55%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/arg_max_or_min_layer.cc.o
[ 55%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/asin_layer.cc.o
[ 55%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/atan_layer.cc.o
[ 55%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/base_layer.cc.o
[ 55%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/batch_norm_layer.cc.o
[ 56%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/bias_add_layer.cc.o
[ 56%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/bitshift_layer.cc.o
[ 56%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/cast_layer.cc.o
[ 56%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/cbam_fused_pooling_layer.cc.o
[ 56%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/cbam_fused_reduce_layer.cc.o
[ 56%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/ceil_layer.cc.o
[ 56%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/clip_layer.cc.o
[ 57%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/concat_layer.cc.o
[ 57%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/constantofshape_layer.cc.o
[ 57%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/conv1d_layer.cc.o
[ 57%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/conv3d_layer.cc.o
[ 57%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/conv_layer.cc.o
[ 57%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/cos_layer.cc.o
[ 58%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/deconv_layer.cc.o
[ 58%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/detection_output_layer.cc.o
[ 58%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/detection_post_process_layer.cc.o
[ 58%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/div_layer.cc.o
[ 58%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/einsum_layer.cc.o
[ 58%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/elementwise_layer.cc.o
[ 58%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/elu_layer.cc.o
[ 59%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/equal_layer.cc.o
[ 59%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/erf_layer.cc.o
[ 59%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/exp_layer.cc.o
[ 59%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/expand_layer.cc.o
[ 59%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/flatten_layer.cc.o
[ 59%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/floor_layer.cc.o
[ 59%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/gather_layer.cc.o
[ 60%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/gathernd_layer.cc.o
[ 60%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/gelu_layer.cc.o
[ 60%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/gridsample_layer.cc.o
[ 60%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/group_norm_layer.cc.o
[ 60%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/hard_sigmoid_layer.cc.o
[ 60%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/hard_swish_layer.cc.o
[ 61%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/hdrguide_layer.cc.o
[ 61%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/histogram_layer.cc.o
[ 61%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/inner_product_layer.cc.o
[ 61%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/instance_norm_layer.cc.o
[ 61%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/inverse_layer.cc.o
[ 61%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/layer_norm_layer.cc.o
[ 61%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/log_layer.cc.o
[ 62%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/log_sigmoid_layer.cc.o
[ 62%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/lrn_layer.cc.o
[ 62%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/lstm_layer.cc.o
[ 62%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/mat_mul_layer.cc.o
[ 62%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/max_layer.cc.o
[ 62%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/min_layer.cc.o
[ 62%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/mul_layer.cc.o
[ 63%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/multidir_broadcast_layer.cc.o
[ 63%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/neg_layer.cc.o
[ 63%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/nonzero_layer.cc.o
[ 63%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/normalize_layer.cc.o
[ 63%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/onehot_layer.cc.o
[ 63%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/pad_layer.cc.o
[ 64%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/padv2_layer.cc.o
[ 64%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/permute_layer.cc.o
[ 64%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/pixel_shuffle_layer.cc.o
[ 64%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/pooling_3d_layer.cc.o
[ 64%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/pooling_layer.cc.o
[ 64%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/pow_layer.cc.o
[ 64%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/prelu_layer.cc.o
[ 65%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/prior_box_layer.cc.o
[ 65%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/range_layer.cc.o
[ 65%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/reciprocal_layer.cc.o
[ 65%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/reduce_l1_layer.cc.o
[ 65%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/reduce_l2_layer.cc.o
[ 65%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/reduce_layer.cc.o
[ 65%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/reduce_log_sum_exp_layer.cc.o
[ 66%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/reduce_log_sum_layer.cc.o
[ 66%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/reduce_max_layer.cc.o
[ 66%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/reduce_mean_layer.cc.o
[ 66%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/reduce_min_layer.cc.o
[ 66%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/reduce_prod_layer.cc.o
[ 66%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/reduce_sum_layer.cc.o
[ 67%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/reduce_sum_square_layer.cc.o
[ 67%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/reformat_layer.cc.o
[ 67%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/relu6_layer.cc.o
[ 67%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/relu_layer.cc.o
[ 67%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/reorg_layer.cc.o
[ 67%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/reshape_layer.cc.o
[ 67%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/roi_pooling_layer.cc.o
[ 68%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/roialign_layer.cc.o
[ 68%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/rsqrt_layer.cc.o
[ 68%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/scale_layer.cc.o
[ 68%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/scatter_nd_layer.cc.o
[ 68%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/selu_layer.cc.o
[ 68%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/shape_layer.cc.o
[ 68%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/shuffle_layer.cc.o
[ 69%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/sigmoid_layer.cc.o
[ 69%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/sign_layer.cc.o
[ 69%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/signed_mul_layer.cc.o
[ 69%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/sin_layer.cc.o
[ 69%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/size_layer.cc.o
[ 69%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/softmax_layer.cc.o
[ 70%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/softplus_layer.cc.o
[ 70%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/softsign_layer.cc.o
[ 70%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/split_layer.cc.o
[ 70%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/splitv_layer.cc.o
[ 70%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/sqrt_layer.cc.o
[ 70%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/squared_difference_layer.cc.o
[ 70%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/squeeze_layer.cc.o
[ 71%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/stride_slice_layer.cc.o
[ 71%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/stride_slice_v2_layer.cc.o
[ 71%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/sub_layer.cc.o
[ 71%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/tan_layer.cc.o
[ 71%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/tanh_layer.cc.o
[ 71%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/tile_layer.cc.o
[ 71%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/topk_layer.cc.o
[ 72%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/unsqueeze_layer.cc.o
[ 72%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/upsample_layer.cc.o
[ 72%] Building CXX object CMakeFiles/TNN.dir/source/tnn/layer/where_layer.cc.o
[ 72%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/bbox_util.cc.o
[ 72%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/bfp16_utils.cc.o
[ 72%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/blob_converter_default.cc.o
[ 73%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/blob_converter_internal.cc.o
[ 73%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/blob_dump_utils.cc.o
[ 73%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/blob_memory_size_utils.cc.o
[ 73%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/blob_transfer_utils.cc.o
[ 73%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/cpu_info.cc.o
[ 73%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/cpu_utils.cc.o
[ 73%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/data_flag_utils.cc.o
[ 74%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/data_format_converter.cc.o
[ 74%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/data_type_utils.cc.o
[ 74%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/detection_post_process_utils.cc.o
[ 74%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/dims_function_utils.cc.o
[ 74%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/dims_offset_utils.cc.o
[ 74%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/dims_vector_utils.cc.o
[ 74%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/half_utils.cc.o
[ 75%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/mat_converter_acc.cc.o
[ 75%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/mat_converter_utils.cc.o
[ 75%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/mat_utils.cc.o
[ 75%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/md5.cc.o
[ 75%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/naive_compute.cc.o
[ 75%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/npu_common_utils.cc.o
[ 76%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/pad_utils.cc.o
[ 76%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/pribox_generator_utils.cc.o
[ 76%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/random_data_utils.cc.o
[ 76%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/split_utils.cc.o
[ 76%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/string_format.cc.o
[ 76%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/string_utils.cc.o
[ 76%] Building CXX object CMakeFiles/TNN.dir/source/tnn/utils/winograd_generator.cc.o
[ 77%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/abstract_model_interpreter.cc.o
[ 77%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/default_model_interpreter.cc.o
[ 77%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/default_model_packer.cc.o
[ 77%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/layer_resource_generator.cc.o
[ 77%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/batch_norm_layer_interpreter.cc.o
[ 77%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/binary_op_interpreter.cc.o
[ 77%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/clip_layer_interpreter.cc.o
[ 78%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/concat_layer_interpreter.cc.o
[ 78%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/conv_layer_interpreter.cc.o
[ 78%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/crop_layer_interpreter.cc.o
[ 78%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/deconv_layer_interpreter.cc.o
[ 78%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/default_layer_interpreter.cc.o
[ 78%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/detection_output_layer_interpreter.cc.o
[ 79%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/eltwise_layer_interpreter.cc.o
[ 79%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/elu_layer_interpreter.cc.o
[ 79%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/hard_sigmoid_layer_interpreter.cc.o
[ 79%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/hard_swish_layer_interpreter.cc.o
[ 79%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/inner_product_layer_interpreter.cc.o
[ 79%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/instance_norm_layer_interpreter.cc.o
[ 79%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/interp_layer_interpreter.cc.o
[ 80%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/lrn_layer_interpreter.cc.o
[ 80%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/memory_data_layer_interpreter.cc.o
[ 80%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/normalize_layer_interpreter.cc.o
[ 80%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/pad_layer_interpreter.cc.o
[ 80%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/permute_layer_interpreter.cc.o
[ 80%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/pooling_layer_interpreter.cc.o
[ 80%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/prelu_layer_interpreter.cc.o
[ 81%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/prior_box_layer_interpreter.cc.o
[ 81%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/reduce_op_layer_interpreter.cc.o
[ 81%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/relu_layer_interpreter.cc.o
[ 81%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/reorg_layer_interpreter.cc.o
[ 81%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/reshape_layer_interpreter.cc.o
[ 81%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/roi_pooling_layer_interpreter.cc.o
[ 82%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/scale_layer_interpreter.cc.o
[ 82%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/selu_layer_interpreter.cc.o
[ 82%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/shuffle_channel_layer_interpreter.cc.o
[ 82%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/slice_layer_interpreter.cc.o
[ 82%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/softmax_layer_interpreter.cc.o
[ 82%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/layer_interpreter/unary_op_layer_interpreter.cc.o
[ 82%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/ncnn_layer_type.cc.o
[ 83%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/ncnn_model_interpreter.cc.o
[ 83%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/ncnn_param_utils.cc.o
[ 83%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/optimizer/expand_slice_optimizer.cc.o
[ 83%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/optimizer/memory_data_optimizer.cc.o
[ 83%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/ncnn/optimizer/ncnn_optimizer_manager.cc.o
[ 83%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/net_resource.cc.o
[ 83%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/net_structure.cc.o
[ 84%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/raw_buffer.cc.o
[ 84%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/add_layer_interpreter.cc.o
[ 84%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/arg_max_or_min_layer_interpreter.cc.o
[ 84%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/batch_norm_layer_interpreter.cc.o
[ 84%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/bias_add_layer_interpreter.cc.o
[ 84%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/bitshift_layer_interpreter.cc.o
[ 85%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/blob_scale_layer_interpreter.cc.o
[ 85%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/cast_layer_interpreter.cc.o
[ 85%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/clip_layer_interpreter.cc.o
[ 85%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/concat_layer_interpreter.cc.o
[ 85%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/const_layer_interpreter.cc.o
[ 85%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/constantofshape_layer_interpreter.cc.o
[ 85%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/conv_1d_layer_interpreter.cc.o
[ 86%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/conv_3d_layer_interpreter.cc.o
[ 86%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/conv_layer_interpreter.cc.o
[ 86%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/detection_output_interpreter.cc.o
[ 86%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/detection_post_process_layer_interpreter.cc.o
[ 86%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/div_layer_interpreter.cc.o
[ 86%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/einsum_layer_interpreter.cc.o
[ 86%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/elu_layer_interpreter.cc.o
[ 87%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/expand_layer_interpreter.cc.o
[ 87%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/flatten_layer_interpreter.cc.o
[ 87%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/gather_layer_interpreter.cc.o
[ 87%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/gathernd_layer_interpreter.cc.o
[ 87%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/gridsample_layer_interpreter.cc.o
[ 87%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/group_norm_layer_interpreter.cc.o
[ 88%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/hard_sigmoid_layer_interpreter.cc.o
[ 88%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/hard_swish_layer_interpreter.cc.o
[ 88%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/hdrguide_layer_interpreter.cc.o
[ 88%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/histogram_layer_interpreter.cc.o
[ 88%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/inner_product_layer_interpreter.cc.o
[ 88%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/instance_norm_layer_interpreter.cc.o
[ 88%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/layer_norm_layer_interpreter.cc.o
[ 89%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/lrn_layer_interpreter.cc.o
[ 89%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/lstm_layer_interpreter.cc.o
[ 89%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/mat_mul_layer_interpreter.cc.o
[ 89%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/max_layer_interpreter.cc.o
[ 89%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/min_layer_interpreter.cc.o
[ 89%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/mul_layer_interpreter.cc.o
[ 89%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/normalize_layer_interpreter.cc.o
[ 90%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/onehot_layer_interpreter.cc.o
[ 90%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/pad_layer_interpreter.cc.o
[ 90%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/padv2_layer_interpreter.cc.o
[ 90%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/permute_layer_interpreter.cc.o
[ 90%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/pixel_shuffle_layer_interpreter.cc.o
[ 90%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/pooling_3d_layer_interpreter.cc.o
[ 90%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/pow_layer_interpreter.cc.o
[ 91%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/pooling_layer_interpreter.cc.o
[ 91%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/prelu_layer_interpreter.cc.o
[ 91%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/prior_box_layer_interpreter.cc.o
[ 91%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/range_layer_interpreter.cc.o
[ 91%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/reduce_op_interpreter.cc.o
[ 91%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/reformat_layer_interpreter.cc.o
[ 92%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/reorg_layer_interpreter.cc.o
[ 92%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/reshape_layer_interpreter.cc.o
[ 92%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/roi_pooling_layer_interpreter.cc.o
[ 92%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/roialign_layer_interpreter.cc.o
[ 92%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/scale_layer_interpreter.cc.o
[ 92%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/scatter_nd_layer_interpreter.cc.o
[ 92%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/selu_layer_interpreter.cc.o
[ 93%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/shape_layer_interpreter.cc.o
[ 93%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/shuffle_layer_interpreter.cc.o
[ 93%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/signed_mul_layer_interpreter.cc.o
[ 93%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/size_layer_interpreter.cc.o
[ 93%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/softmax_layer_interpreter.cc.o
[ 93%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/splitv_layer_interpreter.cc.o
[ 94%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/squared_difference_layer_interpreter.cc.o
[ 94%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/squeeze_layer_interpreter.cc.o
[ 94%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/stride_slice_layer_interpreter.cc.o
[ 94%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/stride_slice_v2_layer_interpreter.cc.o
[ 94%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/sub_layer_interpreter.cc.o
[ 94%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/tile_layer_interpreter.cc.o
[ 94%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/topk_layer_interpreter.cc.o
[ 95%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/unary_op_layer_interpreter.cc.o
[ 95%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/unsqueeze_layer_interpreter.cc.o
[ 95%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/layer_interpreter/upsample_layer_interpreter.cc.o
[ 95%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/model_interpreter.cc.o
[ 95%] Building CXX object CMakeFiles/TNN.dir/source/tnn/interpreter/tnn/model_packer.cc.o
[ 95%] Building CXX object CMakeFiles/TNN.dir/source/tnn/optimizer/net_optimizer_cbam_fused_pooling.cc.o
[ 95%] Building CXX object CMakeFiles/TNN.dir/source/tnn/optimizer/net_optimizer_cbam_fused_reduce.cc.o
[ 96%] Building CXX object CMakeFiles/TNN.dir/source/tnn/optimizer/net_optimizer_fuse_conv_add.cc.o
[ 96%] Building CXX object CMakeFiles/TNN.dir/source/tnn/optimizer/net_optimizer_fuse_conv_post.cc.o
[ 96%] Building CXX object CMakeFiles/TNN.dir/source/tnn/optimizer/net_optimizer_insert_fp16_reformat.cc.o
[ 96%] Building CXX object CMakeFiles/TNN.dir/source/tnn/optimizer/net_optimizer_insert_int8_reformat.cc.o
[ 96%] Building CXX object CMakeFiles/TNN.dir/source/tnn/optimizer/net_optimizer_insert_layout_reformat.cc.o
[ 96%] Building CXX object CMakeFiles/TNN.dir/source/tnn/optimizer/net_optimizer_manager.cc.o
[ 97%] Building CXX object CMakeFiles/TNN.dir/source/tnn/optimizer/net_optimizer_remove_layers.cc.o
[ 97%] Building CXX object CMakeFiles/TNN.dir/source/tnn/extern_wrapper/base_layer_builder.cc.o
[ 97%] Building CXX object CMakeFiles/TNN.dir/source/tnn/extern_wrapper/foreign_blob.cc.o
[ 97%] Building CXX object CMakeFiles/TNN.dir/source/tnn/memory_manager/blob_1d_memory.cc.o
[ 97%] Building CXX object CMakeFiles/TNN.dir/source/tnn/memory_manager/blob_1d_memory_pool.cc.o
[ 97%] Building CXX object CMakeFiles/TNN.dir/source/tnn/memory_manager/blob_2d_memory.cc.o
[ 97%] Building CXX object CMakeFiles/TNN.dir/source/tnn/memory_manager/blob_2d_memory_pool.cc.o
[ 98%] Building CXX object CMakeFiles/TNN.dir/source/tnn/memory_manager/blob_memory.cc.o
[ 98%] Building CXX object CMakeFiles/TNN.dir/source/tnn/memory_manager/blob_memory_pool.cc.o
[ 98%] Building CXX object CMakeFiles/TNN.dir/source/tnn/memory_manager/blob_memory_pool_factory.cc.o
[ 98%] Building CXX object CMakeFiles/TNN.dir/source/tnn/memory_manager/blob_memory_size_info.cc.o
[ 98%] Building CXX object CMakeFiles/TNN.dir/source/tnn/memory_manager/memory_mode_state.cc.o
[ 98%] Building CXX object CMakeFiles/TNN.dir/source/tnn/memory_manager/memory_mode_state_factory.cc.o
[ 98%] Building CXX object CMakeFiles/TNN.dir/source/tnn/memory_manager/memory_seperate_assign_strategy.cc.o
[ 99%] Building CXX object CMakeFiles/TNN.dir/source/tnn/memory_manager/memory_unify_assign_strategy.cc.o
[ 99%] Building CXX object CMakeFiles/TNN.dir/source/tnn/memory_manager/others_memory_mode_state.cc.o
[ 99%] Building CXX object CMakeFiles/TNN.dir/source/tnn/memory_manager/share_one_thread_memory_mode_state.cc.o
[ 99%] Building CXX object CMakeFiles/TNN.dir/source/tnn/memory_manager/shared_memory_manager.cc.o
[ 99%] Linking CXX shared library libTNN.so
[ 99%] Built target TNN
Scanning dependencies of target TNNTest
[ 99%] Building CXX object test/CMakeFiles/TNNTest.dir/flags.cc.o
[ 99%] Building CXX object test/CMakeFiles/TNNTest.dir/test.cc.o
[ 99%] Building CXX object test/CMakeFiles/TNNTest.dir/timer.cc.o
[100%] Building CXX object test/CMakeFiles/TNNTest.dir/test_utils.cc.o
[100%] Linking CXX executable TNNTest
[100%] Built target TNNTest

******************** step 4: add version attr ********************
******************** step 4: copy to release ********************
build done!

5. 详细描述bug 情况 (Describe the bug)

   编译出来的推理库和转换的模型放到安卓端应用里推理得不到正确结果,模型是做人脸检测(RetinaFace)的,节点输出的各个维度都对,但是generate后没有任何人脸信息的输出,应该是模型转换或者输入预处理还是有问题。经验证原始onnx模型没有问题,在通过mnn框架的转换与部署到安卓端推理可以得到正确的结果,而在tnn上就不行,而generate代码用的是同一套。麻烦帮忙分析一下问题出在哪。

模型加载与推理部分核心代码:

//模型与推理网络加载 JNIEXPORT JNICALL jint TNN_CLASSIFY(init)(JNIEnv *env, jobject thiz, jstring modelPath, jstring protoPath) {

std::string protoContent, modelContent;
std::string modelPathStr(jstring2string(env, modelPath));
std::string protoPathStr(jstring2string(env, protoPath));
protoContent = fdLoadFile(protoPathStr);
modelContent = fdLoadFile(modelPathStr);

TNN_NS::Status status = TNN_NS::TNN_OK;
TNN_NS::ModelConfig config = TNN_NS::ModelConfig();
config.model_type = TNN_NS::MODEL_TYPE_TNN;
config.params = {protoContent, modelContent};

auto net = std::make_shared<TNN_NS::TNN>();
status = net->Init(config);

device_type_ = TNN_NS::DEVICE_ARM;

TNN_NS::InputShapesMap shapeMap = TNN_NS::InputShapesMap();
TNN_NS::NetworkConfig network_config = TNN_NS::NetworkConfig();
network_config.library_path = {""};
network_config.device_type = device_type_;

    faceDetect_net_ = net;
    TNN_NS::DimsVector target_dims = {1, 3, 640, 640};
    shapeMap.insert(make_pair("data", target_dims));
    auto instance_0 = faceDetect_net_->CreateInst(network_config, status, shapeMap);
    instance_0->SetCpuNumThreads(4);
    faceDetect_instance_ = instance_0;

if (status != TNN_NS::TNN_OK) {
    LOGE("TNN init failed %d", (int) status);
    return -1;
}
return 0;

}

//模型推理代码 //输入参数主要为待检测图像bitmap对象、待检测图像宽度、待检测图像高度 JNIEXPORT JNICALL jint TNN_CLASSIFY(getFaceDetect)(JNIEnv *env, jobject thiz, jobject imageSource, jint width, jint height) {

jint ret = -1;
TNN_NS::Status status = TNN_NS::TNN_OK;
AndroidBitmapInfo sourceInfocolor;
void *sourcePixelscolor;
int origin_width = width;
int origin_height = height;

if (AndroidBitmap_getInfo(env, imageSource, &sourceInfocolor) < 0) {
    return nullptr;
}

if (sourceInfocolor.format != ANDROID_BITMAP_FORMAT_RGBA_8888) {
    return nullptr;
}

if (AndroidBitmap_lockPixels(env, imageSource, &sourcePixelscolor) < 0) {
    return nullptr;
}

//orgin dims
TNN_NS::DimsVector origin_dims = {1, 4, origin_height, origin_width};
//target dims
TNN_NS::DimsVector target_dims = {1, 3, 640, 640};

auto input_mat = std::make_shared<TNN_NS::Mat>(device_type_, TNN_NS::N8UC4, origin_dims, sourcePixelscolor);
//here add the resize
auto target_mat = std::make_shared<TNN_NS::Mat>(device_type_, TNN_NS::N8UC3, target_dims);
TNN_NS::ResizeParam param = TNN_NS::ResizeParam();
TNN_NS::MatUtils::Resize(*input_mat, *target_mat, param, nullptr);

// step 1. set input mat
TNN_NS::MatConvertParam input_cvt_param = TNN_NS::MatConvertParam();
auto input_status = faceDetect_instance_->SetInputMat(target_mat, input_cvt_param, "data");//输入节点

if (input_status != TNN_NS::TNN_OK) {return nullptr;}

// step 2. Forward
status = faceDetect_instance_->ForwardAsync(nullptr);
if (status != TNN_NS::TNN_OK) {return nullptr;}

// step 3. get output mat
std::shared_ptr<TNN_NS::Mat> score_stride8 = nullptr;
std::shared_ptr<TNN_NS::Mat> bbox_stride8 = nullptr;
std::shared_ptr<TNN_NS::Mat> landmark_stride8 = nullptr;
std::shared_ptr<TNN_NS::Mat> score_stride16 = nullptr;
std::shared_ptr<TNN_NS::Mat> bbox_stride16 = nullptr;
std::shared_ptr<TNN_NS::Mat> landmark_stride16 = nullptr;
std::shared_ptr<TNN_NS::Mat> score_stride32 = nullptr;
std::shared_ptr<TNN_NS::Mat> bbox_stride32 = nullptr;
std::shared_ptr<TNN_NS::Mat> landmark_stride32 = nullptr;

TNN_NS::MatConvertParam output_cvt_param = TNN_NS::MatConvertParam();

/**
 * stride 8
 **/
status = faceDetect_instance_->GetOutputMat(score_stride8, output_cvt_param, "face_rpn_cls_prob_reshape_stride8");
if (status != TNN_NS::TNN_OK) {return nullptr;}
const auto *score_stride8_data = static_cast<float*>(score_stride8->GetData());
LOGE("score_stride8 shape: %d %d %d %d", score_stride8->GetBatch(), score_stride8->GetChannel(), score_stride8->GetHeight(), score_stride8->GetWidth());

status = faceDetect_instance_->GetOutputMat(bbox_stride8, output_cvt_param, "face_rpn_bbox_pred_stride8");
if (status != TNN_NS::TNN_OK) {return nullptr;}
const auto *bbox_stride8_data = static_cast<float*>(bbox_stride8->GetData());
LOGE("bbox_stride8 shape: %d %d %d %d", bbox_stride8->GetBatch(), bbox_stride8->GetChannel(), bbox_stride8->GetHeight(), bbox_stride8->GetWidth());

status = faceDetect_instance_->GetOutputMat(landmark_stride8, output_cvt_param, "face_rpn_landmark_pred_stride8");
if (status != TNN_NS::TNN_OK) {return nullptr;}
const auto *landmark_stride8_data = static_cast<float*>(landmark_stride8->GetData());
LOGE("landmark_stride8 shape: %d %d %d %d", landmark_stride8->GetBatch(), landmark_stride8->GetChannel(), landmark_stride8->GetHeight(), landmark_stride8->GetWidth());

/**
 * stride 16
 **/
status = faceDetect_instance_->GetOutputMat(score_stride16, output_cvt_param, "face_rpn_cls_prob_reshape_stride16");
if (status != TNN_NS::TNN_OK) {return nullptr;}
const auto *score_stride16_data = static_cast<float*>(score_stride16->GetData());
LOGE("score_stride16 shape: %d %d %d %d", score_stride16->GetBatch(), score_stride16->GetChannel(), score_stride16->GetHeight(), score_stride16->GetWidth());

status = faceDetect_instance_->GetOutputMat(bbox_stride16, output_cvt_param, "face_rpn_bbox_pred_stride16");
if (status != TNN_NS::TNN_OK) {return nullptr;}
const auto *bbox_stride16_data = static_cast<float*>(bbox_stride16->GetData());
LOGE("bbox_stride16 shape: %d %d %d %d", bbox_stride16->GetBatch(), bbox_stride16->GetChannel(), bbox_stride16->GetHeight(), bbox_stride16->GetWidth());

status = faceDetect_instance_->GetOutputMat(landmark_stride16, output_cvt_param, "face_rpn_landmark_pred_stride16");
if (status != TNN_NS::TNN_OK) {return nullptr;}
const auto *landmark_stride16_data = static_cast<float*>(landmark_stride16->GetData());
LOGE("landmark_stride16 shape: %d %d %d %d", landmark_stride16->GetBatch(), landmark_stride16->GetChannel(), landmark_stride16->GetHeight(), landmark_stride16->GetWidth());

/**
 * stride 32
 **/
status = faceDetect_instance_->GetOutputMat(score_stride32, output_cvt_param, "face_rpn_cls_prob_reshape_stride32");
if (status != TNN_NS::TNN_OK) {return nullptr;}
const auto *score_stride32_data = static_cast<float*>(score_stride32->GetData());
LOGE("score_stride32 shape: %d %d %d %d", score_stride32->GetBatch(), score_stride32->GetChannel(), score_stride32->GetHeight(), score_stride32->GetWidth());

status = faceDetect_instance_->GetOutputMat(bbox_stride32, output_cvt_param, "face_rpn_bbox_pred_stride32");
if (status != TNN_NS::TNN_OK) {return nullptr;}
const auto *bbox_stride32_data = static_cast<float*>(bbox_stride32->GetData());
LOGE("bbox_stride32 shape: %d %d %d %d", bbox_stride32->GetBatch(), bbox_stride32->GetChannel(), bbox_stride32->GetHeight(), bbox_stride32->GetWidth());

status = faceDetect_instance_->GetOutputMat(landmark_stride32, output_cvt_param, "face_rpn_landmark_pred_stride32");
if (status != TNN_NS::TNN_OK) {return nullptr;}
const auto *landmark_stride32_data = static_cast<float*>(landmark_stride32->GetData());
LOGE("landmark_stride32 shape: %d %d %d %d", landmark_stride32->GetBatch(), landmark_stride32->GetChannel(), landmark_stride32->GetHeight(), landmark_stride32->GetWidth());

AndroidBitmap_unlockPixels(env, imageSource);

/*
... 推理结果generate融合代码
*/

env->DeleteLocalRef(imageSource);
ret = 0;
return ret;

}

6. 运行日志(runtime log)

输出的9个节点的nchw sized的数据如下

score_stride8 shape: 1 4 80 80
bbox_stride8 shape: 1 8 80 80
landmark_stride8 shape: 1 20 80 80
score_stride16 shape: 1 4 40 40
bbox_stride16 shape: 1 8 40 40
landmark_stride16 shape: 1 20 40 40
score_stride32 shape: 1 4 20 20
bbox_stride32 shape: 1 8 20 20
landmark_stride32 shape: 1 20 20 20

与mnn框架推理一致,但在generate后未有任何人脸数据输出,而mnn可以正常检测到且结果正确。

模型详见附件文件! models.zip

bestpower commented 3 years ago

1109

该问题是在这里问题的基础上提出的 补充:在输入到jni推理函数getFaceDetect前,已经在安卓端作了如下处理:

//计算原图最大边长
Bitmap bitmapBW ;
int max_size = Math.max(currentBitmap.getWidth(), currentBitmap.getHeight());
if(max_size>640) {
    //以最大边长的正方形为背景图
    bitmapBW = Bitmap.createBitmap(max_size, max_size, Bitmap.Config.ARGB_8888);
    bwCanvas = new Canvas(bitmapBW);
    bwCanvas.drawARGB(255, 0, 0, 0);
    //将原图绘制在背景图左上位上
    bwCanvas.drawBitmap(currentBitmap, 0, 0, null);
   //将正方形背景图尺寸缩放到640x640
    bitmapBW = ImageProcessUtil.scaleBitmap(bitmapBW, 640, 640, 0, false);
}else{
    //以640边长的正方形为背景图
    bitmapBW = Bitmap.createBitmap(640, 640, Bitmap.Config.ARGB_8888);
    bwCanvas = new Canvas(bitmapBW);
    bwCanvas.drawARGB(255, 0, 0, 0);
    //将原图绘制在背景图左上位上
    bwCanvas.drawBitmap(currentBitmap, 0, 0, null);
}
......
//以bitmapBW作为待检测的Bitmap输入对象
bestpower commented 3 years ago

如果不方便从头分析的话,能否先帮忙看一下是否是模型加载和推理部分的代码有问题:

JNIEXPORT JNICALL jint
TNN_CLASSIFY(init)(JNIEnv *env, jobject thiz, jstring modelPath, jstring protoPath) {

      std::string protoContent, modelContent;
      std::string modelPathStr(jstring2string(env, modelPath));
      std::string protoPathStr(jstring2string(env, protoPath));
      protoContent = fdLoadFile(protoPathStr);
      modelContent = fdLoadFile(modelPathStr);

      TNN_NS::Status status = TNN_NS::TNN_OK;
      TNN_NS::ModelConfig config = TNN_NS::ModelConfig();
      config.model_type = TNN_NS::MODEL_TYPE_TNN;
      config.params = {protoContent, modelContent};

      auto net = std::make_shared<TNN_NS::TNN>();
      status = net->Init(config);

      device_type_ = TNN_NS::DEVICE_ARM;

      TNN_NS::InputShapesMap shapeMap = TNN_NS::InputShapesMap();
      TNN_NS::NetworkConfig network_config = TNN_NS::NetworkConfig();
      network_config.library_path = {""};
      network_config.device_type = device_type_;

      faceDetect_net_ = net;
      TNN_NS::DimsVector target_dims = {1, 3, 640, 640};
      shapeMap.insert(make_pair("data", target_dims));
      auto instance_0 = faceDetect_net_->CreateInst(network_config, status, shapeMap);
      instance_0->SetCpuNumThreads(4);
      faceDetect_instance_ = instance_0;

      if (status != TNN_NS::TNN_OK) {
          LOGE("TNN init failed %d", (int) status);
          return -1;
      }
      return 0;
}

JNIEXPORT JNICALL jint
TNN_CLASSIFY(getFaceDetect)(JNIEnv *env, jobject thiz, jobject imageSource, jint width, jint height) {

      jint ret = -1;
      TNN_NS::Status status = TNN_NS::TNN_OK;
      AndroidBitmapInfo sourceInfocolor;
      void *sourcePixelscolor;
      int origin_width = width;
      int origin_height = height;

      if (AndroidBitmap_getInfo(env, imageSource, &sourceInfocolor) < 0) {
          return nullptr;
      }

      if (sourceInfocolor.format != ANDROID_BITMAP_FORMAT_RGBA_8888) {
          return nullptr;
      }

      if (AndroidBitmap_lockPixels(env, imageSource, &sourcePixelscolor) < 0) {
          return nullptr;
      }

      //orgin dims
      TNN_NS::DimsVector origin_dims = {1, 4, origin_height, origin_width};
      //target dims
      TNN_NS::DimsVector target_dims = {1, 3, 640, 640};

      auto input_mat = std::make_shared<TNN_NS::Mat>(device_type_, TNN_NS::N8UC4, origin_dims, sourcePixelscolor);
      //here add the resize
      auto target_mat = std::make_shared<TNN_NS::Mat>(device_type_, TNN_NS::N8UC3, target_dims);
      TNN_NS::ResizeParam param = TNN_NS::ResizeParam();
      TNN_NS::MatUtils::Resize(*input_mat, *target_mat, param, nullptr);

      // step 1. set input mat
      TNN_NS::MatConvertParam input_cvt_param = TNN_NS::MatConvertParam();
      auto input_status = faceDetect_instance_->SetInputMat(target_mat, input_cvt_param, "data");//输入节点

      if (input_status != TNN_NS::TNN_OK) {return nullptr;}

      // step 2. Forward
      status = faceDetect_instance_->ForwardAsync(nullptr);
      if (status != TNN_NS::TNN_OK) {return nullptr;}

      // step 3. get output mat
      std::shared_ptr<TNN_NS::Mat> score_stride8 = nullptr;
      std::shared_ptr<TNN_NS::Mat> bbox_stride8 = nullptr;
      std::shared_ptr<TNN_NS::Mat> landmark_stride8 = nullptr;
      std::shared_ptr<TNN_NS::Mat> score_stride16 = nullptr;
      std::shared_ptr<TNN_NS::Mat> bbox_stride16 = nullptr;
      std::shared_ptr<TNN_NS::Mat> landmark_stride16 = nullptr;
      std::shared_ptr<TNN_NS::Mat> score_stride32 = nullptr;
      std::shared_ptr<TNN_NS::Mat> bbox_stride32 = nullptr;
      std::shared_ptr<TNN_NS::Mat> landmark_stride32 = nullptr;

      TNN_NS::MatConvertParam output_cvt_param = TNN_NS::MatConvertParam();

      /**
       * stride 8
       **/
      status = faceDetect_instance_->GetOutputMat(score_stride8, output_cvt_param, "face_rpn_cls_prob_reshape_stride8");
      if (status != TNN_NS::TNN_OK) {return nullptr;}
      const auto *score_stride8_data = static_cast<float*>(score_stride8->GetData());
      LOGE("score_stride8 shape: %d %d %d %d", score_stride8->GetBatch(), score_stride8->GetChannel(), score_stride8->GetHeight(), score_stride8->GetWidth());

      status = faceDetect_instance_->GetOutputMat(bbox_stride8, output_cvt_param, "face_rpn_bbox_pred_stride8");
      if (status != TNN_NS::TNN_OK) {return nullptr;}
      const auto *bbox_stride8_data = static_cast<float*>(bbox_stride8->GetData());
      LOGE("bbox_stride8 shape: %d %d %d %d", bbox_stride8->GetBatch(), bbox_stride8->GetChannel(), bbox_stride8->GetHeight(), bbox_stride8->GetWidth());

      status = faceDetect_instance_->GetOutputMat(landmark_stride8, output_cvt_param, "face_rpn_landmark_pred_stride8");
      if (status != TNN_NS::TNN_OK) {return nullptr;}
      const auto *landmark_stride8_data = static_cast<float*>(landmark_stride8->GetData());
      LOGE("landmark_stride8 shape: %d %d %d %d", landmark_stride8->GetBatch(), landmark_stride8->GetChannel(), landmark_stride8->GetHeight(), landmark_stride8->GetWidth());

      /**
       * stride 16
       **/
      status = faceDetect_instance_->GetOutputMat(score_stride16, output_cvt_param, "face_rpn_cls_prob_reshape_stride16");
      if (status != TNN_NS::TNN_OK) {return nullptr;}
      const auto *score_stride16_data = static_cast<float*>(score_stride16->GetData());
      LOGE("score_stride16 shape: %d %d %d %d", score_stride16->GetBatch(), score_stride16->GetChannel(), score_stride16->GetHeight(), score_stride16->GetWidth());

      status = faceDetect_instance_->GetOutputMat(bbox_stride16, output_cvt_param, "face_rpn_bbox_pred_stride16");
      if (status != TNN_NS::TNN_OK) {return nullptr;}
      const auto *bbox_stride16_data = static_cast<float*>(bbox_stride16->GetData());
      LOGE("bbox_stride16 shape: %d %d %d %d", bbox_stride16->GetBatch(), bbox_stride16->GetChannel(), bbox_stride16->GetHeight(), bbox_stride16->GetWidth());

      status = faceDetect_instance_->GetOutputMat(landmark_stride16, output_cvt_param, "face_rpn_landmark_pred_stride16");
      if (status != TNN_NS::TNN_OK) {return nullptr;}
      const auto *landmark_stride16_data = static_cast<float*>(landmark_stride16->GetData());
      LOGE("landmark_stride16 shape: %d %d %d %d", landmark_stride16->GetBatch(), landmark_stride16->GetChannel(), landmark_stride16->GetHeight(), landmark_stride16->GetWidth());

      /**
       * stride 32
       **/
      status = faceDetect_instance_->GetOutputMat(score_stride32, output_cvt_param, "face_rpn_cls_prob_reshape_stride32");
      if (status != TNN_NS::TNN_OK) {return nullptr;}
      const auto *score_stride32_data = static_cast<float*>(score_stride32->GetData());
      LOGE("score_stride32 shape: %d %d %d %d", score_stride32->GetBatch(), score_stride32->GetChannel(), score_stride32->GetHeight(), score_stride32->GetWidth());

      status = faceDetect_instance_->GetOutputMat(bbox_stride32, output_cvt_param, "face_rpn_bbox_pred_stride32");
      if (status != TNN_NS::TNN_OK) {return nullptr;}
      const auto *bbox_stride32_data = static_cast<float*>(bbox_stride32->GetData());
      LOGE("bbox_stride32 shape: %d %d %d %d", bbox_stride32->GetBatch(), bbox_stride32->GetChannel(), bbox_stride32->GetHeight(), bbox_stride32->GetWidth());

      status = faceDetect_instance_->GetOutputMat(landmark_stride32, output_cvt_param, "face_rpn_landmark_pred_stride32");
      if (status != TNN_NS::TNN_OK) {return nullptr;}
      const auto *landmark_stride32_data = static_cast<float*>(landmark_stride32->GetData());
      LOGE("landmark_stride32 shape: %d %d %d %d", landmark_stride32->GetBatch(), landmark_stride32->GetChannel(), landmark_stride32->GetHeight(), landmark_stride32->GetWidth());

      AndroidBitmap_unlockPixels(env, imageSource);

      /*
      ... 推理结果generate融合代码
      */

      env->DeleteLocalRef(imageSource);
      ret = 0;
      return ret;
}
shaundai-tencent commented 3 years ago

可以通过以下步骤一步步排查问题: 1、排查转出来的TNN模型是否正确,具体是跟onnx模型结果做对比。可以通过在模型转换的时候加上 -align 参数来校验,TNN的模型结果是否和onnx模型结果一致。 2、确定具体TNN执行推理的平台结果是否正确。可以通过model_check工具进行排查(https://github.com/Tencent/TNN/blob/master/doc/cn/development/model_check.md),通过-d指定需要运行的平台,最终看此平台结果是否与模型的参考输出结果一致。 3、如果上述都没有问题,那说明问题不在TNN这边,有可能在预处理或者后处理部分。可以参考的工程进行对比,是不是送入模型的数据有问题。或者模型的输出数据的处理有问题。

bestpower commented 3 years ago

前两步排查是通过了的,关于预处理的方法已经是参考了其他demo来做的,也试了各种配置还是检测不到 现在主要有两点疑问: 1、这个模型在ncnn的预处理中是不需要将输入图像数据缩放即可检测出结果的,貌似在model_check时提示这个模型的输入可以是任意的,tnn是否一定要指定输入尺寸或者有其他什么处理方式? 2、输出节点数据类型NCHW_FLOAT数组的排列顺序是怎样的,我在mnn框架上也是设置的NCHW类型的输出,打日志它们输出的nchw size是一致的,通过同一套generate代码mnn就可以正确输出结果,而tnn就不行?

bestpower commented 3 years ago

TNN相较于ncnn,对于数据输入预处理的可配置项明显多了很多,之前看了你们源码自带的Demo以及其他人写的Demo,预处理这一块的代码感觉都写的比较随意,看着很乱,我这边参考也只能一个个乱试,到现在也还是检测不出来,浪费了好多时间,最近我们也是在考虑用新的框架,如果大家总在这些问题上卡住得不到解决,那你们这个新框架也是很难推广的,所以关于输入节点数据预处理的流程及其他类似的问题,你们官方能否出一份标准文档?

shaundai-tencent commented 3 years ago

看了一下代码, TNN_NS::MatUtils::Resize(input_mat, target_mat, param, nullptr); 这一步没有检查返回值,这里应该会返回错误,因为输入和输出的mat的mat type不一致,输入是N8UC4,但是输出是N8UC3。这里报错的话,就不会做resize操作,确认一下这里是否正确执行了。

bestpower commented 3 years ago

看了一下代码, TNN_NS::MatUtils::Resize(input_mat, target_mat, param, nullptr); 这一步没有检查返回值,这里应该会返回错误,因为输入和输出的mat的mat type不一致,输入是N8UC4,但是输出是N8UC3。这里报错的话,就不会做resize操作,确认一下这里是否正确执行了。

我这边都试过,Resize操作在java层已经做过了,模型输入如果是N8UC4 {1, 4, 640, 640}会报错,输入N8UC3 {1, 3, 640, 640}会正常执行,但是最后也检测不出来

shaundai-tencent commented 3 years ago

那建议先检查一下,SetInputMat的那个Mat数据是否正确。送入Mat的数据是RGB或者BGR的INT8数据吗?是否需要设置MatConvertParam?

bestpower commented 3 years ago

那建议先检查一下,SetInputMat的那个Mat数据是否正确。送入Mat的数据是RGB或者BGR的INT8数据吗?是否需要设置MatConvertParam?

输入是BGR格式,按你们代码里的解释就是N8UC3,MatConvertParam里就是默认参数,我用ncnn和mnn框架推理都没有mean和normal的设置,其他我就是在java层做了个尺寸变换和背景填充,变成ARGB8888和640*640的Bitmap输入到native代码里

shaundai-tencent commented 3 years ago

那这个模型的输入是RGB 3通道的,为什么要做背景填充。将ARGB8888数据送入native之后,有没有做一个ARGB8888到RGB的转换?

bestpower commented 3 years ago

那这个模型的输入是RGB 3通道的,为什么要做背景填充。将ARGB8888数据送入native之后,有没有做一个ARGB8888到RGB的转换?

做背景填充是因为模型的输入size要求是640x640,而原图的宽高不一定相等,所以先做填充再做尺寸变换来保证输入尺寸的一致性。没有做ARGB8888到RGB的转换,我看框架里是有带CvtColor的方法,但是没有这两个格式转换类型,这种情况该怎么处理?

typedef enum {
    COLOR_CONVERT_NV12TOBGR  = 0x00,
    COLOR_CONVERT_NV12TOBGRA = 0x01,
    COLOR_CONVERT_NV21TOBGR  = 0x02,
    COLOR_CONVERT_NV21TOBGRA = 0x03,
    COLOR_CONVERT_BGRTOGRAY  = 0x04,
    COLOR_CONVERT_BGRATOGRAY = 0x05,
    COLOR_CONVERT_RGBTOGRAY  = 0x06,
    COLOR_CONVERT_RGBATOGRAY = 0x07,
} PUBLIC ColorConversionType;
shaundai-tencent commented 3 years ago

RGBA到RGB的转换,直接将Alpah通道(第四个通道)的数据去除就行。重新分配一个存储RGB数据的内存,逐个像素进行重新赋值,取出RGB的值。

bestpower commented 3 years ago

关于输入通道数问题我还有个疑问,我之前看了很多Demo模型文件都是3通道的输入参数,但在对应native代码里看到很多都是写的4通道的数据输入,这些情况是代码有误还是模型本身支持4通道的输入或者自动过滤掉了Alpah通道数据?

shaundai-tencent commented 3 years ago

Demo里面使用的是TNN的API接口,TNN内部不会自动过滤Alpha通道,传入的Mat,数据的排布一定要和MatType对应,比如,实际的数据排布是RGBA,但是传入的MatType是N8UC3,那内部只会按照RGB的数据格式去读取,这样肯定就有问题。Demo里面肯定做了处理,具体是哪个demo写的是4通道输入?

bestpower commented 3 years ago

TNN\examples\android\demo\src\main\jni\cc\blazeface_detector_jni.cc 模型输入要求是{}1, 3, 128, 128},而代码里写的是{1, 4, 128, 128}

    //orgin dims
    std::vector<int> origin_dims = {1, 4, orig_height, orig_width};
    std::vector<int> resize_dims = {1, 4, target_height, target_width};
    TNN_NS::DeviceType dt = TNN_NS::DEVICE_ARM;
    auto input_mat = std::make_shared<TNN_NS::Mat>(dt, TNN_NS::N8UC4, origin_dims,
                                                   sourcePixelscolor);

    //here add the resize
    auto resize_mat = std::make_shared<TNN_NS::Mat>(dt, TNN_NS::N8UC4, resize_dims);

    TNN_NS::ResizeParam param;
    TNN_NS::MatUtils::Resize(*input_mat, *resize_mat, param, NULL);

TNN\examples\android\demo\src\main\jni\cc\face_detector_jni.cc 模型输入要求是{1, 3, 240, 320},而代码里写的是{1, 4, 240, 320}

    TNN_NS::DeviceType dt = TNN_NS::DEVICE_ARM;
    TNN_NS::DimsVector target_dims = {1, 4, height, width};
    auto input_mat = std::make_shared<TNN_NS::Mat>(dt, TNN_NS::N8UC4, target_dims, sourcePixelscolor);
shaundai-tencent commented 3 years ago

这种情况是支持的,就是输入的Mat格式是N8UC4,输入的数据也是8UC4的排布,如果模型是3维的,那内部会忽略第四维的数据。总之,输入的Mat的MatType需要和输入的数据排布一致。

bestpower commented 3 years ago

找到出问题的原因了: 1、推理输入问题:按N8UC4和{1,4,640,640}格式输入推理就可以,不用做RGBA到RGB的转换 2、其他问题:在generate代码中,有个写法在tnn工程里调用不被支持,代码执行到那里就会报错,但按N8UC3和{1,3,640,640}的格式输入却不报错,而在ncnn和mnn工程里也不报错,具体原因未知。

shaundai-tencent commented 3 years ago

能否贴一下出错位置的代码?我们排查一下,是否是内部少了异常判断。

bestpower commented 3 years ago

native推理输入按以下写法就可以了,但是MatType写成TNN_NS::N8UC3,origin_dims写成{1, 4, origin_height, origin_width}也不会报错

AndroidBitmapInfo sourceInfocolor;
void *sourcePixelscolor;
int origin_width = width;
int origin_height = height;
if (AndroidBitmap_getInfo(env, imageSource, &sourceInfocolor) < 0) {
    return nullptr;
}
if (sourceInfocolor.format != ANDROID_BITMAP_FORMAT_RGBA_8888) {
    return nullptr;
}
if (AndroidBitmap_lockPixels(env, imageSource, &sourcePixelscolor) < 0) {
    return nullptr;
}
TNN_NS::DimsVector origin_dims = {1, 4, origin_height, origin_width};
auto input_mat = std::make_shared<TNN_NS::Mat>(TNN_NS::DEVICE_ARM, TNN_NS::N8UC4, origin_dims, sourcePixelscolor);

generate代码也是在native中执行的,在执行到

#pragma omp parallel sections

语句会报错,做native调试会指向到 __kmp_abort_process libgcc2.c:?,我把这个语句去掉就OK了,报错应该跟TNN库无关,可能跟编译配置有关

shaundai-tencent commented 3 years ago

好的,内部确实没有判断MatType和dims之间是否有矛盾,后面考虑会打印一个错误信息来提示调用者。

bestpower commented 3 years ago

那这个问题先暂时这样了,后面推理如果再出现什么问题再来提