Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/NVIDIA/TensorRT-LLM
/ optimize
Function
optimize
tensorrt_llm/graph_rewriting.py:639–645 ·
view source on GitHub ↗
(net)
Source
from the content-addressed store, hash-verified
637
638
639
def
optimize(net):
640
patterns = RewritePatternManager()
641
patterns.add(
642
label=
"fuse_attention_with_bias"
,
643
pattern=FuseAttentionWithBiasPass(),
644
)
645
patterns.rewrite(net)
Callers
1
build
Function · 0.85
Calls
4
rewrite
Method · 0.95
RewritePatternManager
Class · 0.85
FuseAttentionWithBiasPass
Class · 0.85
add
Method · 0.45
Tested by
no test coverage detected