mirror of
https://github.com/shiyu-coder/Kronos.git
synced 2026-10-06 13:42:36 +08:00
Bug fix
This commit is contained in:
+3
-1
@@ -370,7 +370,8 @@ class MultiHeadAttentionWithRoPE(nn.Module):
|
||||
q, k, v,
|
||||
attn_mask=attn_mask,
|
||||
dropout_p=self.attn_dropout_p,
|
||||
is_causal=True
|
||||
is_causal=True,
|
||||
training=self.training
|
||||
)
|
||||
|
||||
attn_output = attn_output.transpose(1, 2).contiguous().view(batch_size, seq_len, self.d_model)
|
||||
@@ -577,3 +578,4 @@ class TemporalEmbedding(nn.Module):
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user