mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-10 10:32:17 +00:00
Fit type hint
This commit is contained in:
parent
23a9b66295
commit
5e7e1a350e
@ -564,7 +564,7 @@ def save_checkpoint(
|
||||
|
||||
def compute_loss(
|
||||
params: AttributeDict,
|
||||
model: nn.Module,
|
||||
model: Union[nn.Module, DDP],
|
||||
sp: spm.SentencePieceProcessor,
|
||||
pl: UniqLexicon,
|
||||
batch: dict,
|
||||
@ -948,7 +948,7 @@ def run(rank, world_size, args):
|
||||
valid_cuts = gigaspeech.dev_cuts()
|
||||
valid_dl = gigaspeech.valid_dataloaders(valid_cuts)
|
||||
|
||||
if 0 and not params.print_diagnostics:
|
||||
if not params.print_diagnostics:
|
||||
scan_pessimistic_batches_for_oom(
|
||||
model=model,
|
||||
train_dl=train_dl,
|
||||
|
Loading…
x
Reference in New Issue
Block a user