data_dir=path_to_data_file
checkpoint_dir=path_to_checkpoint_file

Step="xxxxx"
for idx in $Step
do
    chmod 777 -R $work_dir/$checkpoint_dir
    echo model_checkpoint_path: \"model.ckpt-$idx\" > $work_dir/$checkpoint_dir/checkpoint
    cat $work_dir/$checkpoint_dir/checkpoint
    echo decoding with checkpoint-$idx
    CUDA_VISIBLE_DEVICES=0 python $work_dir/$code_dir/thumt/bin/translator.py \
        --models transformer \
        --checkpoints $work_dir/$checkpoint_dir \