模型多batch推理(需执行于灵汐类脑计算设备)

模型多batch推理(需执行于灵汐类脑计算设备)#

注意

多batch需使用V1编译器。batch数默认为1,支持的多batch数为2, 4, 7, 14, 28。

应用

执行脚本(以2batch为例)

DVS-MNIST

python3 test.py --config clif3fc3dm_itout-b16x1-dvsmnist --checkpoint best_clif3.pth --use_lyngor 1 --use_legacy 0 --v 1 --b 2

python3 test.py --config clif5fc2dm_itout-b16x1-dvsmnist --checkpoint best_clif5.pth --use_lyngor 1 --use_legacy 0 --v 1 --b 2

DVS-Gesture

python3 test.py --config clif3flif2dg_itout-b16x1-dvsgesture --checkpoint best_clif3.pth --use_lyngor 1 --use_legacy 0 --v 1 --b 2

python3 test.py --config clif7fc1dg_itout-b16x1-dvsgesture --checkpoint best_clif7.pth --use_lyngor 1 --use_legacy 0 --v 1 --b 2

CIFAR10-DVS

python3 test.py --config clif5fc2cd_itout-b64x1-cifar10dvs --checkpoint best_clif5.pth --use_lyngor 1 --use_legacy 0 --v 1 --b 2

python3 test.py --config clif7fc1cd_itout-b64x1-cifar10dvs --checkpoint best_clif7.pth --use_lyngor 1 --use_legacy 0 --v 1 --b 2

Jester

python3 test.py --config resnetlif18-itout-b20x4-16-jester --checkpoint latest.pth --use_lyngor 1 --use_legacy 0 --v 1 --b 2

Luna16Cls

python3 test.py --config clif3fc3lc_itout-b16x1-luna16cls --checkpoint latest.pth --use_lyngor 1 --use_legacy 0 --v 1 --b 2

RGB-Gesture

python3 test.py --config clif3flif2rg_itout-b16x1-rgbgesture --checkpoint latest.pth --use_lyngor 1 --use_legacy 0 --v 1 --b 2

ESImagenet

python3 test.py --config resnetlif18-itout-b64x4-esimagenet --checkpoint latest.pth --use_lyngor 1 --use_legacy 0 --v 1 --b 2