div_term = torch.exp(torch.arange(0, d_model, ... pe[:, 0::2] = torch.sin(position * div_term) ... x = x * math.sqrt(self.d_model)
確定! 回上一頁