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

python perfermance_test_single.py