You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PaddleSpeech/examples/hey_snips/kws0/local/train.sh

14 lines
317 B

3 years ago
#!/bin/bash
ngpu=$1
cfg_path=$2
if [ ${ngpu} -gt 0 ]; then
python3 -m paddle.distributed.launch --gpus $CUDA_VISIBLE_DEVICES ${BIN_DIR}/train.py \
--cfg_path ${cfg_path}
else
3 years ago
echo "set CUDA_VISIBLE_DEVICES to enable multi-gpus trainning."
3 years ago
python3 ${BIN_DIR}/train.py \
--cfg_path ${cfg_path}
fi