MCPcopy Create free account
hub / github.com/csunny/algorithm / transpose_qkv

Function transpose_qkv

nlp/transformer.py:40–47  ·  view source on GitHub ↗

为了多注意力头的并行计算而变换形状

(X, num_heads)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

forwardMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected