fullseye

attention_apply — LLMCORE score op

使い方

注意の重みで値を混ぜる → tokens。行和 1 なので出力は入力の凸結合。

Args: weights: (T, S) float。行和が 1 であること(attention_weights の出力)。 value: (S, dv) float。混ぜられる側。 Returns: tokens (T, dv) float: 各行が value の行の凸結合。値域は value を出ない (同時に幅は縮む —— 平均は対比を潰す)。

詳しい使い方ガイド

参考(サンプルデータ・文献)

実行できる例(この op を実際に呼ぶ検証済みサンプル)

型が繋がる次の op(tokens を入力に取れる)

rms_norm · rope_rotate · attention_scores · attention_softmax · attention_tiled · attention_linear · attention_grouped · kv_cache_decode

同カテゴリ(score)

attention_scores · attention_weights


Provenance: llmcore.py — LLMCORE operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.