mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-08 09:32:20 +00:00
Update attention_decoder.py (#1681)
This commit is contained in:
parent
325a825841
commit
2d64228efa
@ -22,11 +22,11 @@ from typing import List, Optional
|
||||
import k2
|
||||
import torch
|
||||
import torch.nn as nn
|
||||
|
||||
from label_smoothing import LabelSmoothingLoss
|
||||
from icefall.utils import add_eos, add_sos, make_pad_mask
|
||||
from scaling import penalize_abs_values_gt
|
||||
|
||||
from icefall.utils import add_eos, add_sos, make_pad_mask
|
||||
|
||||
|
||||
class AttentionDecoderModel(nn.Module):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user