From ccd704be3fd6e2e8267afb73cf9ba8f5fd883309 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=87=AF=E5=AE=87?= Date: Wed, 22 Oct 2025 01:50:36 +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 7ae8edd30f..2248ff95a5 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]{2}:[0-9]{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]{2}:[0-9]{2}:[0-9]{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