出現報錯./snpe-dlc-quantize: error while loading shared libraries: libomp.so: cannot open shared object file: No such file or directory
查找libomp.so的位置:ind / -name libomp.so 2>/dev/null 將得到的位置加入環境變量: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/node2/snpe/snpe-1.40.0.2130/lib/x86_64-linux-clang
重復2中的命令,量化轉換成功[INFO] InitializeStderr: DebugLog initialized.
[INFO] Writing intermediate model
[WARNING] NetworkTopology::populateNetworkDesc network desc inputs is empty. Does this network have data/input layer?
[INFO] Setting activation for layer: input:0 and buffer: input:0
[INFO] bw: 8, min: -1.000000, max: 0.992188, delta: 0.007812, offset: -128.000000
[INFO] Setting activation for layer: InceptionV3/InceptionV3/Conv2d_1a_3x3/convolution and buffer: InceptionV3/InceptionV3/Conv2d_1a_3x3/BatchNorm/batchnorm/add_1:0
[INFO] bw: 8, min: -10.426631, max: 10.674884, delta: 0.082751, offset: -126.000000
[INFO] Setting activation for layer: InceptionV3/InceptionV3/Conv2d_1a_3x3/Relu and buffer: InceptionV3/InceptionV3/Conv2d_1a_3x3/Relu:0
[INFO] bw: 8, min: 0.000000, max: 10.647199, delta: 0.041754, offset: 0.000000[INFO] Setting activation for layer: InceptionV3/InceptionV3/Conv2d_2a_3x3/convolution and buffer: InceptionV3/InceptionV3/Conv2d_2a_3x3/BatchNorm/batchnorm/add_1:0
[INFO] bw: 8, min: -8.310483, max: 8.508352, delta: 0.065956, offset: -126.000000
[INFO] Setting activation for layer: InceptionV3/InceptionV3/Conv2d_2a_3x3/Relu and buffer: InceptionV3/InceptionV3/Conv2d_2a_3x3/Relu:0
[INFO] bw: 8, min: 0.000000, max: 8.484724, delta: 0.033273, offset: 0.000000[INFO] Setting activation for layer: InceptionV3/InceptionV3/Conv2d_2b_3x3/convolution and buffer: InceptionV3/InceptionV3/Conv2d_2b_3x3/BatchNorm/batchnorm/add_1:0
[INFO] bw: 8, min: -9.289681, max: 10.616778, delta: 0.078065, offset: -119.000000
[INFO] Setting activation for layer: InceptionV3/InceptionV3/Conv2d_2b_3x3/Relu and buffer: InceptionV3/InceptionV3/Conv2d_2b_3x3/Relu:0
[INFO] bw: 8, min: 0.000000, max: 10.628510, delta: 0.041680, offset: 0.000000[INFO] Setting activation for layer: InceptionV3/InceptionV3/MaxPool_3a_3x3/MaxPool and buffer: InceptionV3/InceptionV3/MaxPool_3a_3x3/MaxPool:0
[INFO] bw: 8, min: 0.000000, max: 10.628510, delta: 0.041680, offset: 0.000000[INFO] Setting activation for layer: InceptionV3/InceptionV3/Conv2d_3b_1x1/convolution and buffer: InceptionV3/InceptionV3/Conv2d_3b_1x1/BatchNorm/batchnorm/add_1:0
[INFO] bw: 8, min: -6.303848, max: 11.557054, delta: 0.070043, offset: -90.000000