Update attention_decoder.py

This commit is contained in:
jinzr 2024-07-06 02:14:21 +08:00
parent f76afff741
commit 3cad98d69d

View File

@ -22,11 +22,11 @@ from typing import List, Optional
import k2 import k2
import torch import torch
import torch.nn as nn import torch.nn as nn
from label_smoothing import LabelSmoothingLoss from label_smoothing import LabelSmoothingLoss
from icefall.utils import add_eos, add_sos, make_pad_mask
from scaling import penalize_abs_values_gt from scaling import penalize_abs_values_gt
from icefall.utils import add_eos, add_sos, make_pad_mask
class AttentionDecoderModel(nn.Module): class AttentionDecoderModel(nn.Module):
""" """