摘要: import torch import torch.nn.functional as F #1. 创建 Query、Key 和 Value 张量 q = torch.randn(2, 3, 4) # 形状 (batch_size, seq_len1, feature_dim) k = torch.r 阅读全文
posted @ 2026-07-29 09:12 Marksion 阅读(4) 评论(0) 推荐(0)