提交 0dd7915c 编写于 作者: Z Ziyan

fix broad id and shell script

上级 66ab0fa3
......@@ -318,7 +318,7 @@ export RANK_ID=0
echo "start training for device 0"
env > env0.log
pytest -s -v ./resnet50_distributed_training.py > train.log0 2>&1
if [ $i -eq 0 ];then
if [ $? -eq 0 ];then
echo "training success"
else
echo "training failed"
......
......@@ -42,7 +42,7 @@ export RANK_ID=0
echo "start training for device 0"
env > env0.log
pytest -s -v ./resnet50_distributed_training.py > train.log0 2>&1
if [ $i -eq 0 ];then
if [ $? -eq 0 ];then
echo "training success"
else
echo "training failed"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册