Skip to content

Commit

Permalink
Fix error reporting in TL3_EfficientDet_convergence and TL3_YOLO_conv…
Browse files Browse the repository at this point in the history
…ergence (NVIDIA#3376)

- due to the usage of tee the errors are not propagated correctly in
  TL3_EfficientDet_convergence and TL3_YOLO_convergence. The PR
  fixes the issue by using PIPESTATUS env variable to obtain
  the pipelined command result

Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
  • Loading branch information
JanuszL authored and cyyever committed Jan 23, 2022
1 parent 1c68bd4 commit c213826
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions qa/TL3_EfficientDet_convergence/test_tensorflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ python train.py
--eval_after_training \
--log_dir . \
--ckpt_dir . \
--output_filename out_weights_1.h5 2>&1 | tee $LOG
--output_filename out_weights_1.h5 2>&1 | tee $LOG

popd

CLEAN_AND_EXIT 0
CLEAN_AND_EXIT ${PIPESTATUS[0]}
2 changes: 1 addition & 1 deletion qa/TL3_YOLO_convergence/test_tensorflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ python src/main.py train \
--eval_annotations /data/coco/coco-2017/coco2017/annotations/instances_val2017.json 2>&1 | tee $LOG


CLEAN_AND_EXIT 0
CLEAN_AND_EXIT ${PIPESTATUS[0]}

0 comments on commit c213826

Please sign in to comment.