From 5d3ce843de4b097f9041365d4f9352b3bedb09ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=87=AF=E5=AE=87?= Date: Thu, 23 Oct 2025 08:11:50 +0000 Subject: [PATCH] update PyTorch/built-in/others/OpenFold_for_PyTorch/test/train_openfold_8p.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王凯宇 --- .../others/OpenFold_for_PyTorch/test/train_openfold_8p.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PyTorch/built-in/others/OpenFold_for_PyTorch/test/train_openfold_8p.sh b/PyTorch/built-in/others/OpenFold_for_PyTorch/test/train_openfold_8p.sh index 2248ff95a5..c9a8649d82 100644 --- a/PyTorch/built-in/others/OpenFold_for_PyTorch/test/train_openfold_8p.sh +++ b/PyTorch/built-in/others/OpenFold_for_PyTorch/test/train_openfold_8p.sh @@ -42,11 +42,11 @@ wait format_time=$(tac "openfold_train_8p.log" | grep -m 1 'Epoch' | awk -F'[][]' '{split($2, time, "<"); print time[1]}') # 计算总秒数 -if [[ $format_time =~ ^[0-9]{1, 2}:[0-9]{1, 2}$ ]]; then +if [[ $format_time =~ ^[0-9]{1,2}:[0-9]{1,2}$ ]]; then #分:秒 IFS=':' read -r minutes seconds <<< "$format_time" total_seconds=$((minutes * 60 + seconds)) -elif [[ $format_time =~ ^[0-9]{1, 2}:[0-9]{1, 2}:[0-9]{1, 2}$ ]]; then +elif [[ $format_time =~ ^[0-9]{1,2}:[0-9]{1,2}:[0-9]{1,2}$ ]]; then #时:分:秒 IFS=':' read -r hours minutes seconds <<< "$format_time" total_seconds=$((hours * 3600 + minutes * 60 + seconds)) -- Gitee