1. 程式人生 > >在caffe程式碼裡學習shell指令碼

在caffe程式碼裡學習shell指令碼

通用格式:

# /usr/bin/env sh

如果執行不是0,則退出

set -e

表示所有引數的內容

[email protected]

表示引數的個數

$#
# /usr/bin/env sh
set -e
sudo ./build/tools/caffe test -model=examples/mnist/lenet_train_test.prototxt -weights=examples/mnist/model/lenet_multistep_iter_10000.caffemodel -gpu=0
[email protected]

這裡寫圖片描述