mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
update
This commit is contained in:
parent
ec5e15d47c
commit
74a2059e9c
@ -520,6 +520,10 @@ if __name__ == '__main__':
|
||||
prepare_data(args, distributed_option)
|
||||
|
||||
model = build_model(args)
|
||||
model = model.to(
|
||||
dtype=getattr(torch, args.train_dtype),
|
||||
device="cuda" if args.ngpu > 0 else "cpu",
|
||||
)
|
||||
optimizers = build_optimizer(args, model=model)
|
||||
schedulers = build_scheduler(args, optimizers)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user