#!/usr/bin/env sh
set -e# set -e 是 Shell对调用命令返回值的处理方式。只要有一个不为零,就退出。
TOOLS=./build/tools
$TOOLS/caffe train \
--solver=examples/cifar10/cifar10_quick_solver.prototxt $@
# $@ 是所有参数
# reduce learning rate by factor of 10 after 8 epochs
$TOOLS/caffe train \ --solver=examples/cifar10/cifar10_quick_solver_lr1.prototxt \ --snapshot=examples/cifar10/cifar10_quick_iter_4000.solverstate $@