huawei-noah / bolt

Bolt is a deep learning library with high performance and heterogeneous flexibility.
https://huawei-noah.github.io/bolt/
MIT License
910 stars 158 forks source link

How to build on Raspberry? #68

Open yuxianzhi opened 2 years ago

yuxianzhi commented 2 years ago

We have sucessully build bolt inference library without model converter on Raspberry 3 model B(armv7).

67

export CFLAGS="-march=armv7-a -mfpu=neon-vfpv4 "
export CXXFLAGS="-march=armv7-a -mfpu=neon-vfpv4 "
./install.sh --target=linux-armv7_blank --converter=off -t 4

#benchmark
./install_linux-armv7_blank/example/benchmark -m ./kit/assets/ImageClassification/ghostnet_f32.bolt

You can transfer your bolt model to Raspberry and run inference.