linux下安裝NNPACK

遇到問題:

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#


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值