首页 > 技术文章 > sh脚本循环

adong7639 2017-12-06 16:04 原文

sh for循环

for File in 1 2 3 4 5
do
    echo $File
done

 

sh for多重循环

for image_size_input in 160 140 120 100 80
do
    echo $image_size_input
    for depth_multiplier_input in 1 0.75 0.50 0.25
    do
        echo $depth_multiplier_input
    done
done 

 

 

sh python输入参数

for image_size_input in 160 140 120 100 80
do
    python train.py \
    --image_size $image_size_input
    --batch_size 5 \
done 

 

推荐阅读