mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
update
This commit is contained in:
parent
0237e32625
commit
95d6db2656
@ -83,7 +83,7 @@ class SequenceIterFactory(AbsIterFactory):
|
||||
args.max_update = len(bs_list) * args.max_epoch
|
||||
logging.info("Max update: {}".format(args.max_update))
|
||||
|
||||
if args.distributed:
|
||||
if args.distributed and mode=="train":
|
||||
world_size = torch.distributed.get_world_size()
|
||||
rank = torch.distributed.get_rank()
|
||||
for batch in batches:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user