fix gpus of ernie_sat, test=tts (#2355)

pull/2357/head
TianYuan 2 years ago committed by GitHub
parent efaa5400e8
commit 1c30cff1bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3,7 +3,7 @@
set -e
source path.sh
gpus=0,1
gpus=0,1,2,3,4,5,6,7
stage=0
stop_stage=100

@ -3,7 +3,7 @@
set -e
source path.sh
gpus=0,1
gpus=0,1,2,3,4,5,6,7
stage=0
stop_stage=100

@ -3,7 +3,7 @@
set -e
source path.sh
gpus=0,1
gpus=0,1,2,3,4,5,6,7
stage=0
stop_stage=100

@ -71,7 +71,7 @@ class ErnieSATSampler(BatchSampler):
assert isinstance(drop_last, bool), \
"drop_last should be a boolean number"
from paddle.fluid.dygraph.parallel import ParallelEnv
from paddle.distributed import ParallelEnv
if num_replicas is not None:
assert isinstance(num_replicas, int) and num_replicas > 0, \

Loading…
Cancel
Save