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