遇到問題:
ninja: fatal: ninja version (1.3.4) incompatible with build file ninja_required_version version (1.7).
解決辦法:
下載ninja-1.7.1
運行:
./configure.py --bootstrap
生成:
ninja可執行文件:
拷貝到NNPACK中,然後開始./ninja,既可以運行!查看效果
運行可執行的程序:
root@Ubuntu:/home/code/NNPACK/NNPACK/bin# ./convolution-benchmark -ic 16 -oc 16 -is 180 180 --kernel-size 3 3 -i 100
Batch size: 1
Input channels: 16
Output channels: 16
Input: 180x180 with implicit padding 0
Kernel: 3x3
Subsampling: 1x1
Algorithm: auto
Threads: 8
Iterations: 100
Time: 21.653 ms
Input transform: 1.220 ms (5.6%) [16.7 GB/s]
Kernel transform: 0.023 ms (0.1%) [0.8 GB/s]
Output transform: 1.253 ms (5.8%) [16.2 GB/s]
Block multiplication: 19.146 ms (88.4%)
Overhead: 0.011 ms (0.1%)
root@Ubuntu:/home/code/NNPACK/NNPACK/bin#