Update attention_decoder.py (#1681)

This commit is contained in:
zr_jin 2024-07-06 09:01:34 +08:00 committed by GitHub
parent 325a825841
commit 2d64228efa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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):
"""