提交 50b2114b 编写于 作者: H Hui Zhang

fix error condition

上级 feaf71d4
...@@ -81,7 +81,7 @@ for dmethd in attention ctc_greedy_search ctc_prefix_beam_search attention_resco ...@@ -81,7 +81,7 @@ for dmethd in attention ctc_greedy_search ctc_prefix_beam_search attention_resco
) & ) &
pids+=($!) # store background pids pids+=($!) # store background pids
i=0; for pid in "${pids[@]}"; do wait ${pid} || ((++i)); done i=0; for pid in "${pids[@]}"; do wait ${pid} || ((++i)); done
[ ${i} -gt 0 ] && echo "$0: ${i} background jobs are failed." && false [ ${i} -gt 0 ] && echo "$0: ${i} background jobs are failed." || true
done done
) )
done done
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册