@ -20,8 +20,7 @@ if [ ${seed} != 0 ]; then
export FLAGS_cudnn_deterministic=True
fi
python3 -u ${BIN_DIR}/train.py \
--ngpu ${ngpu} \
python3 -m paddle.distributed.launch --gpus=${CUDA_VISIBLE_DEVICES} ${BIN_DIR}/train.py \
--config ${config_path} \
--output exp/${ckpt_name} \
--model_type ${model_type} \
@ -27,9 +27,8 @@ ckpt_name=$2
mkdir -p exp
--seed ${seed} \
--profiler-options "${profiler_options}" \
@ -21,8 +21,7 @@ if [ ${seed} != 0 ]; then
--seed ${seed}
@ -22,8 +22,7 @@ fi
# export FLAGS_cudnn_exhaustive_search=true
# export FLAGS_conv_workspace_size_limit=4000
@ -19,9 +19,8 @@ if [ ${seed} != 0 ]; then
--model-name u2_kaldi \
@ -19,8 +19,7 @@ if [ ${seed} != 0 ]; then
@ -26,8 +26,7 @@ model_type=$3
@ -27,10 +27,7 @@ def main_sp(config, args):
def main(config, args):
if args.ngpu > 1:
dist.spawn(main_sp, args=(config, args), nprocs=args.ngpu)
else:
main_sp(config, args)
if __name__ == "__main__":
@ -32,10 +32,7 @@ def main_sp(config, args):
@ -36,10 +36,7 @@ def main_sp(config, args):
@ -30,10 +30,7 @@ def main_sp(config, args):