test.sh 360 Bytes
if [ "$CONDA_DEFAULT_ENV" != "tw" ]; then
    echo "当前环境不是 tw,正在激活 tw 环境..."
    CONDA_ROOT="${CONDA_ROOT:-/home/tw/miniconda3}"
    source "$CONDA_ROOT/etc/profile.d/conda.sh"
    conda activate tw
    echo "已激活 tw 环境"
else
    echo "当前已经在 tw 环境中,无需重复激活"
fi

python perfermance_test_single.py