メインメニューを開く

差分

Self-Attention

1 バイト追加, 2024年4月11日 (木)
編集の要約なし
<source lang="python">
def self_attention(input, mask=None):
 
# Query, Key, Valueの計算
# まず入力からQuery、Key、Valueを計算します。