mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
Revert "find_unused_parameters=True removed"
This reverts commit ba337f8554c2b0b7e0ab3462027de59862cb95dc.
This commit is contained in:
parent
ba337f8554
commit
38246c8690
@ -953,7 +953,8 @@ def run(rank, world_size, args):
|
|||||||
model.to(device)
|
model.to(device)
|
||||||
if world_size > 1:
|
if world_size > 1:
|
||||||
logging.info("Using DDP")
|
logging.info("Using DDP")
|
||||||
model = DDP(model, device_ids=[rank])
|
model = DDP(model, device_ids=[rank],
|
||||||
|
find_unused_parameters=True)
|
||||||
|
|
||||||
optimizer = ScaledAdam(
|
optimizer = ScaledAdam(
|
||||||
get_parameter_groups_with_lrs(
|
get_parameter_groups_with_lrs(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user