mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-26 10:16:14 +00:00
Update attention_decoder.py
This commit is contained in:
parent
f76afff741
commit
3cad98d69d
@ -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):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user