Skip to content

Commit 5942b86

Browse files
committed
feat(model): add torch.nn.functional import
1 parent dab45b2 commit 5942b86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tfkit/task/seq2seq/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from torch import nn
55
from torch.nn.functional import softmax
66
from transformers import AutoModel
7-
7+
import torch.nn.functional as F
88
from tfkit.task.seq2seq import Preprocessor
99
from tfkit.utility.loss import NegativeCElLoss, SelfKDLoss
1010
from tfkit.utility.model import tie_encoder_decoder_weights

0 commit comments

Comments
 (0)